1 2 /************************************************************************ 3 * Unreal Internet Relay Chat Daemon, include/msg.h 4 * Copyright (C) 1990 Jarkko Oikarinen and 5 * University of Oulu, Computing Center 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 1, or (at your option) 10 * any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 * 21 * $Id$ 22 */ 23 24 #ifndef __msg_include__ 25 #define __msg_include__ 26 27 #define MSG_PRIVATE "PRIVMSG" /* PRIV */ 28 #define TOK_PRIVATE "!" /* 33 */ 29 #define MSG_WHOIS "WHOIS" /* WHOI */ 30 #define TOK_WHOIS "#" /* 35 */ 31 #define MSG_WHOWAS "WHOWAS" /* WHOW */ 32 #define TOK_WHOWAS "$" /* 36 */ 33 #define MSG_USER "USER" /* USER */ 34 #define TOK_USER "%" /* 37 */ 35 #define MSG_NICK "NICK" /* NICK */ 36 #define TOK_NICK "&" /* 38 */ 37 #define MSG_SERVER "SERVER" /* SERV */ 38 #define TOK_SERVER "'" /* 39 */ 39 #define MSG_LIST "LIST" /* LIST */ 40 #define TOK_LIST "(" /* 40 */ 41 #define MSG_TOPIC "TOPIC" /* TOPI */ 42 #define TOK_TOPIC ")" /* 41 */ 43 #define MSG_INVITE "INVITE" /* INVI */ 44 #define TOK_INVITE "*" /* 42 */ 45 #define MSG_VERSION "VERSION" /* VERS */ 46 #define TOK_VERSION "+" /* 43 */ 47 #define MSG_QUIT "QUIT" /* QUIT */ 48 #define TOK_QUIT "," /* 44 */ 49 #define MSG_SQUIT "SQUIT" /* SQUI */ 50 #define TOK_SQUIT "-" /* 45 */ 51 #define MSG_KILL "KILL" /* KILL */ 52 #define TOK_KILL "." /* 46 */ 53 #define MSG_INFO "INFO" /* INFO */ 54 #define TOK_INFO "/" /* 47 */ 55 #define MSG_LINKS "LINKS" /* LINK */ 56 #define TOK_LINKS "0" /* 48 */ 57 #define MSG_SUMMON "SUMMON" /* SUMM */ 58 #define TOK_SUMMON "1" /* 49 */ 59 #define MSG_STATS "STATS" /* STAT */ 60 #define TOK_STATS "2" /* 50 */ 61 #define MSG_USERS "USERS" /* USER -> USRS */ 62 #define TOK_USERS "3" /* 51 */ 63 #define MSG_HELP "HELP" /* HELP */ 64 #define MSG_HELPOP "HELPOP" /* HELP */ 65 #define TOK_HELP "4" /* 52 */ 66 #define MSG_ERROR "ERROR" /* ERRO */ 67 #define TOK_ERROR "5" /* 53 */ 68 #define MSG_AWAY "AWAY" /* AWAY */ 69 #define TOK_AWAY "6" /* 54 */ 70 #define MSG_CONNECT "CONNECT" /* CONN */ 71 #define TOK_CONNECT "7" /* 55 */ 72 #define MSG_PING "PING" /* PING */ 73 #define TOK_PING "8" /* 56 */ 74 #define MSG_PONG "PONG" /* PONG */ 75 #define TOK_PONG "9" /* 57 */ 76 #define MSG_OPER "OPER" /* OPER */ 77 #define TOK_OPER ";" /* 59 */ 78 #define MSG_PASS "PASS" /* PASS */ 79 #define TOK_PASS "<" /* 60 */ 80 #define MSG_WALLOPS "WALLOPS" /* WALL */ 81 #define TOK_WALLOPS "=" /* 61 */ 82 #define MSG_TIME "TIME" /* TIME */ 83 #define TOK_TIME ">" /* 62 */ 84 #define MSG_NAMES "NAMES" /* NAME */ 85 #define TOK_NAMES "?" /* 63 */ 86 #define MSG_ADMIN "ADMIN" /* ADMI */ 87 #define TOK_ADMIN "@" /* 64 */ 88 #define MSG_NOTICE "NOTICE" /* NOTI */ 89 #define TOK_NOTICE "B" /* 66 */ 90 #define MSG_JOIN "JOIN" /* JOIN */ 91 #define TOK_JOIN "C" /* 67 */ 92 #define MSG_PART "PART" /* PART */ 93 #define TOK_PART "D" /* 68 */ 94 #define MSG_LUSERS "LUSERS" /* LUSE */ 95 #define TOK_LUSERS "E" /* 69 */ 96 #define MSG_MOTD "MOTD" /* MOTD */ 97 #define TOK_MOTD "F" /* 70 */ 98 #define MSG_MODE "MODE" /* MODE */ 99 #define TOK_MODE "G" /* 71 */ 100 #define MSG_KICK "KICK" /* KICK */ 101 #define TOK_KICK "H" /* 72 */ 102 #define MSG_SERVICE "SERVICE" /* SERV -> SRVI */ 103 #define TOK_SERVICE "I" /* 73 */ 104 #define MSG_USERHOST "USERHOST" /* USER -> USRH */ 105 #define TOK_USERHOST "J" /* 74 */ 106 #define MSG_ISON "ISON" /* ISON */ 107 #define TOK_ISON "K" /* 75 */ 108 #define MSG_REHASH "REHASH" /* REHA */ 109 #define TOK_REHASH "O" /* 79 */ 110 #define MSG_RESTART "RESTART" /* REST */ 111 #define TOK_RESTART "P" /* 80 */ 112 #define MSG_CLOSE "CLOSE" /* CLOS */ 113 #define TOK_CLOSE "Q" /* 81 */ 114 #define MSG_DIE "DIE" /* DIE */ 115 #define TOK_DIE "R" /* 82 */ 116 #define MSG_HASH "HASH" /* HASH */ 117 #define TOK_HASH "S" /* 83 */ 118 #define MSG_DNS "DNS" /* DNS -> DNSS */ 119 #define TOK_DNS "T" /* 84 */ 120 #define MSG_SILENCE "SILENCE" /* SILE */ 121 #define TOK_SILENCE "U" /* 85 */ 122 #define MSG_AKILL "AKILL" /* AKILL */ 123 #define TOK_AKILL "V" /* 86 */ 124 #define MSG_KLINE "KLINE" /* KLINE */ 125 #define TOK_KLINE "W" /* 87 */ 126 #define MSG_UNKLINE "UNKLINE" /* UNKLINE */ 127 #define TOK_UNKLINE "X" /* 88 */ 128 #define MSG_RAKILL "RAKILL" /* RAKILL */ 129 #define TOK_RAKILL "Y" /* 89 */ 130 #define MSG_GNOTICE "GNOTICE" /* GNOTICE */ 131 #define TOK_GNOTICE "Z" /* 90 */ 132 #define MSG_GOPER "GOPER" /* GOPER */ 133 #define TOK_GOPER "[" /* 91 */ 134 #define MSG_GLOBOPS "GLOBOPS" /* GLOBOPS */ 135 #define TOK_GLOBOPS "]" /* 93 */ 136 #define MSG_LOCOPS "LOCOPS" /* LOCOPS */ 137 #define TOK_LOCOPS "^" /* 94 */ 138 #define MSG_PROTOCTL "PROTOCTL" /* PROTOCTL */ 139 #define TOK_PROTOCTL "_" /* 95 */ 140 #define MSG_WATCH "WATCH" /* WATCH */ 141 #define TOK_WATCH "`" /* 96 */ 142 #define MSG_TRACE "TRACE" /* TRAC */ 143 #define TOK_TRACE "b" /* 97 */ 144 #define MSG_SQLINE "SQLINE" /* SQLINE */ 145 #define TOK_SQLINE "c" /* 98 */ 146 #define MSG_UNSQLINE "UNSQLINE" /* UNSQLINE */ 147 #define TOK_UNSQLINE "d" /* 99 */ 148 #define MSG_SVSNICK "SVSNICK" /* SVSNICK */ 149 #define TOK_SVSNICK "e" /* 100 */ 150 #define MSG_SVSNOOP "SVSNOOP" /* SVSNOOP */ 151 #define TOK_SVSNOOP "f" /* 101 */ 152 #define MSG_IDENTIFY "IDENTIFY" /* IDENTIFY */ 153 #define TOK_IDENTIFY "g" /* 102 */ 154 #define MSG_SVSKILL "SVSKILL" /* SVSKILL */ 155 #define TOK_SVSKILL "h" /* 103 */ 156 #define MSG_NICKSERV "NICKSERV" /* NICKSERV */ 157 #define MSG_NS "NS" 158 #define TOK_NICKSERV "i" /* 104 */ 159 #define MSG_CHANSERV "CHANSERV" /* CHANSERV */ 160 #define MSG_CS "CS" 161 #define TOK_CHANSERV "j" /* 105 */ 162 #define MSG_OPERSERV "OPERSERV" /* OPERSERV */ 163 #define MSG_OS "OS" 164 #define TOK_OPERSERV "k" /* 106 */ 165 #define MSG_MEMOSERV "MEMOSERV" /* MEMOSERV */ 166 #define MSG_MS "MS" 167 #define TOK_MEMOSERV "l" /* 107 */ 168 #define MSG_SERVICES "SERVICES" /* SERVICES */ 169 #define TOK_SERVICES "m" /* 108 */ 170 #define MSG_SVSMODE "SVSMODE" /* SVSMODE */ 171 #define TOK_SVSMODE "n" /* 109 */ 172 #define MSG_SAMODE "SAMODE" /* SAMODE */ 173 #define TOK_SAMODE "o" /* 110 */ 174 #define MSG_CHATOPS "CHATOPS" /* CHATOPS */ 175 #define TOK_CHATOPS "p" /* 111 */ 176 #define MSG_ZLINE "ZLINE" /* ZLINE */ 177 #define TOK_ZLINE "q" /* 112 */ 178 #define MSG_UNZLINE "UNZLINE" /* UNZLINE */ 179 #define TOK_UNZLINE "r" /* 113 */ 180 #define MSG_HELPSERV "HELPSERV" /* HELPSERV */ 181 #define MSG_HS "HS" 182 #define TOK_HELPSERV "s" /* 114 */ 183 #define MSG_RULES "RULES" /* RULES */ 184 #define TOK_RULES "t" /* 115 */ 185 #define MSG_MAP "MAP" /* MAP */ 186 #define TOK_MAP "u" /* 117 */ 187 #define MSG_SVS2MODE "SVS2MODE" /* SVS2MODE */ 188 #define TOK_SVS2MODE "v" /* 118 */ 189 #define MSG_DALINFO "DALINFO" /* dalinfo */ 190 #define TOK_DALINFO "w" /* 119 */ 191 #define MSG_ADMINCHAT "ADCHAT" /* Admin chat */ 192 #define TOK_ADMINCHAT "x" /* 120 */ 193 #define MSG_MKPASSWD "MKPASSWD" /* MKPASSWD */ 194 #define TOK_MKPASSWD "y" /* 121 */ 195 #define MSG_ADDLINE "ADDLINE" /* ADDLINE */ 196 #define TOK_ADDLINE "z" /* 122 */ 197 #define MSG_GLINE "GLINE" /* The awesome g-line */ 198 #define TOK_GLINE "}" /* 125 */ 199 #define MSG_SJOIN "SJOIN" 200 #define TOK_SJOIN "~" 201 #define MSG_SETHOST "SETHOST" /* sethost */ 202 #define TOK_SETHOST "AA" /* 127 4ever !;) */ 203 #define MSG_NACHAT "NACHAT" /* netadmin chat */ 204 #define TOK_NACHAT "AC" /* *beep* */ 205 #define MSG_SETIDENT "SETIDENT" 206 #define TOK_SETIDENT "AD" 207 #define MSG_SETNAME "SETNAME" /* set GECOS */ 208 #define TOK_SETNAME "AE" /* its almost unreeaaall... */ 209 #define MSG_LAG "LAG" /* Lag detect */ 210 #define TOK_LAG "AF" /* a or ? */ 211 #define MSG_STATSERV "STATSERV" /* alias */ 212 #define TOK_STATSERV "AH" 213 #define MSG_KNOCK "KNOCK" 214 #define TOK_KNOCK "AI" 215 #define MSG_CREDITS "CREDITS" 216 #define TOK_CREDITS "AJ" 217 #define MSG_LICENSE "LICENSE" 218 #define TOK_LICENSE "AK" 219 #define MSG_CHGHOST "CHGHOST" 220 #define TOK_CHGHOST "AL" 221 #define MSG_RPING "RPING" 222 #define TOK_RPING "AM" 223 #define MSG_RPONG "RPONG" 224 #define TOK_RPONG "AN" 225 #define MSG_NETINFO "NETINFO" 226 #define TOK_NETINFO "AO" 227 #define MSG_SENDUMODE "SENDUMODE" 228 #define TOK_SENDUMODE "AP" 229 #define MSG_ADDMOTD "ADDMOTD" 230 #define TOK_ADDMOTD "AQ" 231 #define MSG_ADDOMOTD "ADDOMOTD" 232 #define TOK_ADDOMOTD "AR" 233 #define MSG_SVSMOTD "SVSMOTD" 234 #define TOK_SVSMOTD "AS" 235 #define MSG_SMO "SMO" 236 #define TOK_SMO "AU" 237 #define MSG_OPERMOTD "OPERMOTD" 238 #define TOK_OPERMOTD "AV" 239 #define MSG_TSCTL "TSCTL" 240 #define TOK_TSCTL "AW" 241 #define MSG_SVSJOIN "SVSJOIN" 242 #define MSG_SAJOIN "SAJOIN" 243 #define TOK_SAJOIN "AX" 244 #define MSG_SVSPART "SVSPART" 245 #define TOK_SVSPART "BT" 246 #define MSG_SAPART "SAPART" 247 #define TOK_SAPART "AY" 248 #define MSG_CHGIDENT "CHGIDENT" 249 #define TOK_CHGIDENT "AZ" 250 #define MSG_SWHOIS "SWHOIS" 251 #define TOK_SWHOIS "BA" 252 #define MSG_SVSO "SVSO" 253 #define TOK_SVSO "BB" 254 #define MSG_SVSFLINE "SVSFLINE" 255 #define TOK_SVSFLINE "BC" 256 #define MSG_TKL "TKL" 257 #define TOK_TKL "BD" 258 #define MSG_VHOST "VHOST" 259 #define TOK_VHOST "BE" 260 #define MSG_BOTMOTD "BOTMOTD" 261 #define TOK_BOTMOTD "BF" 262 #define MSG_REMGLINE "REMGLINE" /* remove g-line */ 263 #define TOK_REMGLINE "BG" 264 #define MSG_HTM "HTM" 265 #define TOK_HTM "BH" 266 #define MSG_UMODE2 "UMODE2" 267 #define TOK_UMODE2 "|" 268 #define MSG_DCCDENY "DCCDENY" 269 #define TOK_DCCDENY "BI" 270 #define MSG_UNDCCDENY "UNDCCDENY" 271 #define TOK_UNDCCDENY "BJ" 272 #define MSG_CHGNAME "CHGNAME" 273 #define MSG_SVSNAME "SVSNAME" 274 #define TOK_CHGNAME "BK" 275 #define MSG_SHUN "SHUN" 276 #define TOK_SHUN "BL" 277 #define MSG_NEWJOIN "NEWJOIN" /* For CR Java Chat */ 278 #define MSG_POST "POST" 279 #define TOK_POST "BN" 280 #define MSG_INFOSERV "INFOSERV" 281 #define MSG_IS "IS" 282 #define TOK_INFOSERV "BO" 283 284 #define MSG_BOTSERV "BOTSERV" 285 #define TOK_BOTSERV "BS" 286 287 #define MSG_CYCLE "CYCLE" 288 #define TOK_CYCLE "BP" 289 290 #define MSG_MODULE "MODULE" 291 #define TOK_MODULE "BQ" 292 /* BR and BT are in use */ 293 294 #define MSG_SENDSNO "SENDSNO" 295 #define TOK_SENDSNO "Ss" 296 297 #define MSG_EOS "EOS" 298 #define TOK_EOS "ES" 299 300 #define MSG_MLOCK "MLOCK" 301 #define TOK_MLOCK "ML" 302 303 #define MAXPARA 15 304 305 extern int m_error(); 306 extern int m_dns(); 307 extern int m_info(), m_summon(); 308 extern int m_users(), m_version(); 309 extern int m_dalinfo(); 310 extern int m_credits(); 311 extern int m_license(); 312 extern int m_module(), m_alias(); 313 extern int m_rehash(), m_die(), m_restart(); 314 #endif 315 316