aboutsummaryrefslogtreecommitdiff
path: root/commands.txt
blob: 9641d6dbc52a1f3bcb460d27f60d246ecaac074c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Anything starting with a / is a command, unless it starts with
*two* / in which case the first one is removed and the rest is
sent as channel/query text.

Example: someone asks you where the password file is on UNIX. If you
reply "/etc/passwd", that would be considered a command. You type
"//etc/passwd" and the string "/etc/passwd" gets sent to the channel.

Anything that starts with / that isn't listed here gets sent to the
IRC server as-is, minus the /. That's why /nick, /who, /whois aren't
listed here, for instance.

/j <channel>
/join <channel>
Joins a channel, creates a new screen if possible. If a screen can't
be created, channel text will be sent to the [server] screen, and
"/m #channel" must be used, to send to the channel.

/m <nick|channel> <text>
/msg <nick|channel> <text>
PRIVMSG to nick or channel.

/q <nick> [<msg>]
/query <nick> [<msg>]
Creates a screen for PMs to/from <nick> if possible. If <msg> is
given, sends it to the <nick>. <nick> can also be a channel, which
creates a channel screen for a channel that doesn't already have
its own screen.

/quit [<msg>]
Quits IRC with optional quit message.

/p [#chan] [<msg>]
/part [#chan] [<msg>]
Parts (leaves) a channel. If no #chan is given, the current screen's
channel is parted (if you're in a channel screen). If there's a screen
for the channel, it gets closed.

/ping [<nick>]
With no argument: ping the server. With arg: CTCP ping the nick.
The contents of RTCLOK are sent as the ping data, so when the
PONG response is received, the round-trip time can be shown, with
up to 1/60 (NTSC) or 1/50 (PAL) second accuracy.

/me <action>
CTCP ACTION. Only works in a channel or query screen (eventually
it'll work in [server] and [private] too)

/ver <nick>
CTCP VERSION.

/info [<nick>]
With <nick>, CTCP CLIENTINFO. Without <nick>, INFO command for the
server.

/list <arg(s)>
This command will be sent to the server as-is. The only reason it's a
local command is so the argument can be required: sending LIST without
any arguments lists every channel on the server, which isn't useful.

/color <bg> [<fg>] [<status-active>] [<status-highlight>]
Set colors. This should be on a per-screen basis, eventually.

/chans
List all channels we've joined. This will actually be limited to
something like 20 (who joins more than 20 channels anyway?)

/quote <cmd>
Send raw IRC protocol.