XChat User Commands



Contents

  • What is an alias
  • Usage
  • Execute multiple commands with one User Command
  • Examples
  • Special Codes
  • Set User Commands on connect




User Commands

What is an alias

User Commands can be used to create aliases (shortcut commands) with.
An alias is a command name (shortcut command) you create to run one or more commands.
eg. "j" is an alias for "join".

Normal:

/join #xchat

Alias:

/j #xchat



Usage

Open the User Commands dialog.
Settings -> Advanced -> User Commands

Use the 'Add New' button to create a new User Command (alias).
Replace *NEW* with the alias name and replace EDIT ME with a command.
Hit 'Save'.




Execute multiple commands with one User Command

You can use one User Command (alias) that performs multiple commands, just use the same alias name for several different commands.
They will be executed in the order they appear in the list.



Examples

Examples:

im
im --> mode %c +im

A User Command to lock and mute the current channel (fast in case of floods).

/im


idnick
idnick --> msg nickserv identify pass01

A User Command to identify your nick.

/idnick


idchans
idchans --> msg chanserv identify #xchat pass02
idchans --> msg chanserv identify #debian pass03
idchans --> msg chanserv identify #linux pass04

A User Command to identify all your channels.

/idchans


ijxchat
ijxchat --> msg chanserv invite #xchat

ijxchat --> timer 3 j #xchat

A User Command to identify the channel and lets you join after 3 seconds. (Timers)

/ijxchat


asl
asl --> me is a 32 year old single male from South America.

A User Command to show your asl.

/asl

* Carlos is a 32 year old single male from South America.


time
time --> say %C04Date and time in the Netherlands: %C12%t%O

A User Command to show date and time.

/time

Date and time in the Netherlands: Fri Aug 1 17:29:03



Special Codes

Special Codes.
%c = current channel
%e = current network name
%m = machine info
%n = your nick
%t = time/date
%v = xchat version
%2 = word 2
%3 = word 3
&2 = word 2 to the end of line
&3 = word 3 to the end of line

eg. /cmd john hello
%2 would be "john"
&2 would be "john hello".



Set User Commands on connect

User Commands can also be set on connect. (Connect commands)








Help Auto Replace Buttons Charset Connect
CTCP Replies     Downloads Help Commands     Ignore Popups
Screenshots SET Variables     Spell Checking Strftime Text Events
Themes Timers Tips & Tricks User Commands     xchat-gnome!=xchat



XChat Official
- Documentation
- Download
- FAQ
- Forum
- News
- Scripts & Plugins



changed February 11, 2012