1 | ;;;; $Id: variable.lisp 2 2004-01-05 14:13:03Z eenge $ |
---|
2 | ;;;; $Source$ |
---|
3 | |
---|
4 | ;;;; See the LICENSE file for licensing information. |
---|
5 | |
---|
6 | (in-package :irc) |
---|
7 | |
---|
8 | (defvar *debug-p* nil) |
---|
9 | (defvar *debug-stream* t) |
---|
10 | |
---|
11 | (defconstant +soh+ #.(code-char 1)) |
---|
12 | |
---|
13 | (defparameter *version* "0.1.0") |
---|
14 | (defparameter *ctcp-version* |
---|
15 | (format nil "CL IRC library, cl-irc:~A:~A ~A" |
---|
16 | *version* (machine-type) (machine-version))) |
---|
17 | |
---|
18 | (defparameter *download-host* "ftp://common-lisp.net/") |
---|
19 | (defparameter *download-directory* "/pub/project/cl-irc/") |
---|
20 | (defparameter *download-file* |
---|
21 | (format nil "cl-irc-~A.tar.gz" *version*)) |
---|
22 | |
---|
23 | (defvar *default-nickname* "cl-irc") |
---|
24 | (defvar *default-irc-server* "irc.freenode.net") |
---|
25 | (defvar *default-irc-server-port* 6667) |
---|
26 | (defvar *default-quit-message* |
---|
27 | "Common Lisp IRC library - http://common-lisp.net/project/cl-irc") |
---|
28 | |
---|
29 | (defvar *dcc-connections* nil) |
---|
30 | |
---|
31 | (defparameter *reply-names* |
---|
32 | '((1 :rpl_welcome) |
---|
33 | (2 :rpl_yourhost) |
---|
34 | (3 :rpl_created) |
---|
35 | (4 :rpl_myinfo) |
---|
36 | (5 :rpl_bounce) |
---|
37 | (200 :rpl_tracelink) |
---|
38 | (201 :rpl_traceconnecting) |
---|
39 | (202 :rpl_tracehandshake) |
---|
40 | (203 :rpl_traceunknown) |
---|
41 | (204 :rpl_traceoperator) |
---|
42 | (205 :rpl_traceuser) |
---|
43 | (206 :rpl_traceserver) |
---|
44 | (207 :rpl_traceservice) |
---|
45 | (208 :rpl_tracenewtype) |
---|
46 | (209 :rpl_traceclass) |
---|
47 | (210 :rpl_tracereconnect) |
---|
48 | (211 :rpl_statslinkinfo) |
---|
49 | (212 :rpl_statscommands) |
---|
50 | (213 :rpl_statscline) |
---|
51 | (214 :rpl_statsnline) |
---|
52 | (215 :rpl_statsiline) |
---|
53 | (216 :rpl_statskline) |
---|
54 | (217 :rpl_statsqline) |
---|
55 | (218 :rpl_statsyline) |
---|
56 | (219 :rpl_endofstats) |
---|
57 | (221 :rpl_umodeis) |
---|
58 | (225 :rpl_statsdline) ; Seen in dancer ircd source |
---|
59 | (227 :rpl_option) ; Seen in dancer ircd source |
---|
60 | (228 :rpl_endoptions) ; Seen in dancer ircd source |
---|
61 | (231 :rpl_serviceinfo) |
---|
62 | (232 :rpl_endofservices) |
---|
63 | (233 :rpl_service) |
---|
64 | (234 :rpl_servlist) |
---|
65 | (235 :rpl_servlistend) |
---|
66 | (240 :rpl_statsvline) |
---|
67 | (241 :rpl_statslline) |
---|
68 | (242 :rpl_statsuptime) |
---|
69 | (243 :rpl_statsonline) |
---|
70 | (244 :rpl_statshline) |
---|
71 | (245 :rpl_statssline) ; The RFC says 244 but I believe that was a typo. |
---|
72 | (246 :rpl_statsping) |
---|
73 | (247 :rpl_statsbline) |
---|
74 | (248 :rpl_statsuline) ; Seen in dancer ircd source |
---|
75 | (249 :rpl_statsdebug) ; Seen in dancer ircd source |
---|
76 | (250 :rpl_statsdline) |
---|
77 | (251 :rpl_luserclient) |
---|
78 | (252 :rpl_luserop) |
---|
79 | (253 :rpl_luserunknown) |
---|
80 | (254 :rpl_luserchannels) |
---|
81 | (255 :rpl_luserme) |
---|
82 | (256 :rpl_adminme) |
---|
83 | (257 :rpl_adminloc1) |
---|
84 | (258 :rpl_adminloc2) |
---|
85 | (259 :rpl_adminemail) |
---|
86 | (261 :rpl_tracelog) |
---|
87 | (262 :rpl_traceend) |
---|
88 | (263 :rpl_tryagain) |
---|
89 | (265 :rpl_localusers) ; Seen in dancer ircd source |
---|
90 | (266 :rpl_globalusers) ; Seen in dancer ircd source |
---|
91 | (268 :rpl_mode) ; Seen in dancer ircd source |
---|
92 | (269 :rpl_endmode) ; Seen in dancer ircd source |
---|
93 | (271 :rpl_sitelist) ; Seen in dancer ircd source |
---|
94 | (272 :rpl_endsitelist) ; Seen in dancer ircd source |
---|
95 | (290 :rpl_clientcapab) ; Seen in dancer ircd source |
---|
96 | (292 :rpl_noservicehost) |
---|
97 | (300 :rpl_none) |
---|
98 | (301 :rpl_away) |
---|
99 | (302 :rpl_userhost) |
---|
100 | (303 :rpl_ison) |
---|
101 | (304 :rpl_away) |
---|
102 | (305 :rpl_unaway) |
---|
103 | (306 :rpl_noaway) |
---|
104 | (311 :rpl_whoisuser) |
---|
105 | (312 :rpl_whoisserver) |
---|
106 | (313 :rpl_whoisoperator) |
---|
107 | (314 :rpl_whowasuser) |
---|
108 | (315 :rpl_endofwho) |
---|
109 | (316 :rpl_whoischanop) |
---|
110 | (317 :rpl_whoisidle) |
---|
111 | (318 :rpl_endofwhois) |
---|
112 | (319 :rpl_whoischannels) |
---|
113 | (320 :rpl_whoisidentified) ; Seen in dancer ircd source |
---|
114 | (321 :rpl_liststart) |
---|
115 | (322 :rpl_list) |
---|
116 | (323 :rpl_listend) |
---|
117 | (324 :rpl_channelmodeis) |
---|
118 | (325 :rpl_uniqopis) |
---|
119 | (326 :rpl_whoisoperprivs) ; Seen in dancer ircd source |
---|
120 | (327 :rpl_whoisrealhost) ; Seen in dancer ircd source |
---|
121 | (329 :rpl_creationtime) ; Seen in dancer ircd source |
---|
122 | (331 :rpl_notopic) |
---|
123 | (332 :rpl_topic) |
---|
124 | (333 :rpl_topicwhotime) ; Seen in dancer ircd source |
---|
125 | (341 :rpl_inviting) |
---|
126 | (342 :rpl_summoning) |
---|
127 | (346 :rpl_invitelist) |
---|
128 | (347 :rpl_endofinvitelist) |
---|
129 | (348 :rpl_exceptlist) |
---|
130 | (349 :rpl_endofexceptlist) |
---|
131 | (351 :rpl_version) |
---|
132 | (352 :rpl_whoreply) |
---|
133 | (353 :rpl_namreply) |
---|
134 | (361 :rpl_killdone) |
---|
135 | (362 :rpl_closing) |
---|
136 | (363 :rpl_closeend) |
---|
137 | (366 :rpl_endofnames) |
---|
138 | (364 :rpl_links) |
---|
139 | (365 :rpl_endoflinks) |
---|
140 | (367 :rpl_banlist) |
---|
141 | (368 :rpl_endofbanlist) |
---|
142 | (369 :rpl_endofwhowas) |
---|
143 | (371 :rpl_info) |
---|
144 | (372 :rpl_motd) |
---|
145 | (373 :rpl_infostart) |
---|
146 | (374 :rpl_endofinfo) |
---|
147 | (375 :rpl_motdstart) |
---|
148 | (376 :rpl_endofmotd) |
---|
149 | (377 :rpl_map) ; Seen in dancer ircd source |
---|
150 | (378 :rpl_endofmap) ; Seen in dancer ircd source |
---|
151 | (379 :rpl_forward) ; Seen in dancer ircd source |
---|
152 | (381 :rpl_youreoper) |
---|
153 | (382 :rpl_rehashing) |
---|
154 | (383 :rpl_yourservice) |
---|
155 | (384 :rpl_myportis) |
---|
156 | (391 :rpl_time) |
---|
157 | (392 :rpl_usersstart) |
---|
158 | (393 :rpl_users) |
---|
159 | (394 :rpl_endofusers) |
---|
160 | (395 :rpl_nousers) |
---|
161 | (399 :rpl_message) ; Seen in dancer ircd source |
---|
162 | (401 :err_nosuchnick) |
---|
163 | (402 :err_nosuchserver) |
---|
164 | (403 :err_nosuchchannel) |
---|
165 | (404 :err_cannotsendtochan) |
---|
166 | (405 :err_toomanychannels) |
---|
167 | (406 :err_wasnosuchnick) |
---|
168 | (407 :err_toomanytargets) |
---|
169 | (408 :err_nosuchservice) |
---|
170 | (409 :err_noorigin) |
---|
171 | (410 :err_services_offline) ; Seen in dancer ircd source |
---|
172 | (411 :err_norecipient) |
---|
173 | (412 :err_notexttosend) |
---|
174 | (413 :err_notoplevel) |
---|
175 | (414 :err_wildtoplevel) |
---|
176 | (415 :err_badmask) |
---|
177 | (421 :err_unknowncommand) |
---|
178 | (422 :err_nomotd) |
---|
179 | (423 :err_noadmininfo) |
---|
180 | (424 :err_fileerror) |
---|
181 | (431 :err_nonicknamegiven) |
---|
182 | (432 :err_erroneusnickname) |
---|
183 | (433 :err_nicknameinuse) |
---|
184 | (436 :err_nickcollision) |
---|
185 | (437 :err_unavailresource) |
---|
186 | (438 :err_bannickchange) ; Seen in dancer ircd source |
---|
187 | (441 :err_usernotinchannel) |
---|
188 | (442 :err_notonchannel) |
---|
189 | (443 :err_useronchannel) |
---|
190 | (444 :err_nologin) |
---|
191 | (445 :err_summondisabled) |
---|
192 | (446 :err_userdisabled) |
---|
193 | (447 :err_targetninvite) ; Seen in dancer ircd source |
---|
194 | (448 :err_sourceninvite) ; Seen in dancer ircd source |
---|
195 | (451 :err_notregistered) |
---|
196 | (461 :err_needmoreparams) |
---|
197 | (462 :err_alreadyregistered) |
---|
198 | (463 :err_nopermforhost) |
---|
199 | (464 :err_passwdmismatch) |
---|
200 | (465 :err_yourebannedcreep) |
---|
201 | (466 :err_youwillbebanned) |
---|
202 | (467 :err_keyset) |
---|
203 | (471 :err_channelisfull) |
---|
204 | (472 :err_unknownmode) |
---|
205 | (473 :err_inviteonlychan) |
---|
206 | (474 :err_bannedfromchan) |
---|
207 | (475 :err_badchannelkey) |
---|
208 | (476 :err_badchanmask) |
---|
209 | (477 :err_nochanmodes) |
---|
210 | (478 :err_banlistfull) |
---|
211 | (479 :err_badchanname) ; Seen in dancer ircd source |
---|
212 | (480 :err_throttled) ; Seen in dancer ircd source |
---|
213 | (481 :err_noprivileges) |
---|
214 | (482 :err_chanoprivsneeded) |
---|
215 | (483 :err_cantkillserver) |
---|
216 | (484 :err_restricted) |
---|
217 | (485 :err_uniqopprivsneeded) |
---|
218 | (486 :err_restricted) ; Seen in dancer ircd source |
---|
219 | (487 :err_no_op_split) ; Seen in dancer ircd source |
---|
220 | (488 :err_need_umode) ; Seen in dancer ircd source |
---|
221 | (491 :err_nooperhost) |
---|
222 | (501 :err_umodeunknownflag) |
---|
223 | (502 :err_usersdontmatch) |
---|
224 | (503 :err_ghostedclient) ; Seen in dancer ircd source |
---|
225 | (505 :err_blocking_notid) ; Seen in dancer ircd source |
---|
226 | (511 :err_sitelistfull) ; Seen in dancer ircd source |
---|
227 | (512 :err_maxmapnodes) ; Seen in dancer ircd source |
---|
228 | (513 :err_maxforwarding) ; Seen in dancer ircd source |
---|
229 | (514 :err_noforwarding) ; Seen in dancer ircd source |
---|
230 | (515 :err_nounidentified) ; Seen in dancer ircd source |
---|
231 | (516 :err_last_err_msg))) ; Seen in dancer ircd source |
---|
232 | |
---|