blob: 828a8f0c1b89587066010ee8495fe6ffc8697d97 (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
.TH IRCRC 1
.SH NAME
ircrc \- internet relay chat client
.SH SYNOPSIS
.B ircrc
[
.B -p
.I port
]
[
.B -r
.I realname
]
[
.B -t
.I target
]
[
.B -n
.I nick
]
[
.I server
]
.SH DESCRIPTION
.I Ircrc
is an IRC client.
Messages are sent from stdin and received from stdout.
The default server is
.BR irc.freenode.net .
.I Ircrc
expands
.B bitlbee
and
.B oftc
to
.B im.bitlbee.org
and
.BR irc.oftc.net ,
respectively.
The options are:
.TP
.BI -p " port
Change the default port
.RB ( 6667 ).
.TP
.BI -r " realname
Change the default name
.RB ( <nil> ).
.TP
.BI -t " target
Set and join the target channel
(multiple channels may be separated by commas).
.TP
.BI -n " nick
Change the default nickname
.RB ( $user ).
.SS Commands
.I Ircrc
understands the following commands:
.TP
.BI /! " cmd
Send the output of the shell command
.I cmd
to the current target.
.TP
.B /M
.B MODE
command.
.TP
.B /N
.B NOTICE
command.
.TP
.B /T
.B TOPIC
command.
.TP
.B /W
.B WHOIS
command.
.TP
.B /a
.B AWAY
command.
.TP
.B /j
.B JOIN
command.
.TP
.B /l
.B LIST
command.
.TP
.B /m
.B PRIVMSG
command.
.TP
.B /n
.B NICK
command.
.TP
.B /p
.B PART
command.
.TP
.BI /q " cmd
Send the raw IRC command
.I cmd
to the server.
.TP
.BI /t " target
Set the current target.
Messages are sent to
.I target
unless they are commands.
If the current target is more than one channel,
any messages are sent to all of them.
.TP
.B /u
.B USERS
command.
.TP
.B /w
.B WHO
command.
.TP
.B /x
.B QUIT
command.
.PP
Anything else is sent as a message to the current target.
See RFC 1459 and RFC 2812 for detailed information about
IRC commands.
.SH EXAMPLES
Default usage:
.IP
.EX
% ircrc
.EE
.PP
Join
.B irc.oftc.net
as a different user:
.IP
.EX
% ircrc -r glenda -n glenda irc.oftc.net
.EE
.PP
Join two channels on login
(remember to set the target to a single channel,
otherwise messages are sent to both):
.IP
.EX
% ircrc -t '#cat-v,#plan9'
.EE
.SH SOURCE
.B /rc/bin/ircrc
.SH SEE ALSO
.B http://tools.ietf.org/html/rfc1459
.br
.B http://tools.ietf.org/html/rfc2812
.SH BUGS
.PP
.I Ircrc
calls the inexistent
.IR auth/userpasswd .
.PP
Some of
.BR irc.freenode.net 's
welcome messages contain control characters.
.PP
Some fonts do not support the nickname delimiters.
|