summaryrefslogtreecommitdiff
path: root/vchat-messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'vchat-messages.h')
-rwxr-xr-xvchat-messages.h120
1 files changed, 120 insertions, 0 deletions
diff --git a/vchat-messages.h b/vchat-messages.h
new file mode 100755
index 0000000..08114d5
--- /dev/null
+++ b/vchat-messages.h
@@ -0,0 +1,120 @@
1/*
2 * vchat-client - alpha version
3 * vchat-messages.h - declaration of servermessage array
4 *
5 * Copyright (C) 2001 Andreas Kotes <count@flatline.de>
6 *
7 * This program is free software. It can be redistributed and/or modified,
8 * provided that this copyright notice is kept intact. This program is
9 * distributed in the hope that it will be useful, but without any warranty;
10 * without even the implied warranty of merchantability or fitness for a
11 * particular purpose. In no event shall the copyright holder be liable for
12 * any direct, indirect, incidental or special damages arising in any way out
13 * of the use of this software.
14 *
15 */
16
17/* servermessage array with structure as defined in vchat.h */
18
19servermessage servermessages[] = {
20/* 100 <message...>
21 Informational message for human consumption */
22 {"100", SM_INFO, NULL, NULL},
23/* 110 <channel> <nick> <fromhost>
24 User status summary */
25 {"110", SM_USERINFO, NULL, NULL},
26/* 111 <date> <time> <code> <message>
27 Server log information */
28 {"111", SM_INFO, NULL, NULL},
29/* 112 <information>
30 Server user information */
31 {"112", SM_USERINFO, NULL, NULL},
32/* 113 <ignore-info>
33 Ignore command confirmation */
34 {"113", SM_IGNORE, NULL, NULL},
35/* 114 <nick> changed the channel topic to <topic>
36 Channel topic change confirmation */
37 {"114", SM_CHANNEL, topicchange, NULL},
38/* 115 <channel> <topic>
39 Channel status information */
40 {"115", SM_CHANNEL, topicinfo, NULL},
41/* 116 <nick> <from> <server> <userinfo>
42 User status information */
43 {"116", SM_USERINFO, NULL, NULL},
44/* 117 <nick> <statistics>
45 User statistics information */
46 {"117", SM_USERINFO, NULL, NULL},
47/* 118 <nick> <action>
48 User action information */
49 {"118", SM_CHANNEL, pubaction, NULL},
50/* 119 <nicks>
51 Userlist */
52 {"119", SM_USERINFO, receivenicks, NULL},
53/* 122 <url>
54 URL List */
55 {"122", SM_USERINFO, NULL, NULL},
56/* 123 <user login [user logout]>
57 User Login / Logout Information */
58 {"123", SM_USERINFO, NULL, NULL},
59/* 201 <protocol> <server-name>
60 Server signon */
61 {"201", SM_IGNORE, NULL, NULL},
62/* 211 <nickname>
63 User signon */
64 {"211", SM_USERINFO, usersignon, NULL},
65/* 212 <nickname>
66 User signon (self) */
67 {"212", SM_INFO, justloggedin, NULL},
68/* 221 <nickname>
69 User signoff */
70 {"221", SM_USERINFO, usersignoff, NULL},
71/* 231 <nickname>
72 Channel departure */
73 {"231", SM_CHANNEL, userleave, NULL},
74/* 232 <nickname>
75 Channel join */
76 {"232", SM_CHANNEL, userjoin, NULL},
77/* 241 <oldnick> <newnick>
78 Nickname change */
79 {"241", SM_USERINFO, usernickchange, NULL},
80/* 120 <registered nick> */
81 {"120", SM_INFO, login, NULL},
82/* 121 You're not logged in */
83 {"121", SM_INFO, anonlogin, NULL},
84/* 301 Message truncated */
85 {"301", SM_ERROR, NULL, NULL},
86/* 302 Message too long */
87 {"302", SM_ERROR, NULL, NULL},
88/* 303 No protocol lines matched expression. */
89 {"303", SM_ERROR, NULL, NULL},
90/* 304 Already in that channel */
91 {"304", SM_ERROR, NULL, NULL},
92/* 305 Still there? */
93 {"305", SM_INFO, idleprompt, NULL},
94/* 401 Character set failure, syntax error */
95 {"401", SM_ERROR, nickerr, NULL},
96/* 402 Uninterpretible command */
97 {"402", SM_ERROR, NULL, NULL},
98/* 403 Not logged in */
99 {"403", SM_ERROR, nickerr, NULL},
100/* 404 Already logged in */
101 {"404", SM_ERROR, NULL, NULL},
102/* 405 This is already the topic */
103 {"405", SM_ERROR, NULL, NULL},
104/* 411 Nickname in use */
105 {"411", SM_ERROR, nickerr, NULL},
106/* 412 Nickname not found (private message not sent) */
107 {"412", SM_ERROR, pmnotsent, NULL},
108/* 413 Channel not found */
109 {"413", SM_ERROR, NULL, NULL},
110/* 414 Access violation */
111 {"414", SM_ERROR, NULL, NULL},
112/* 415 Nickname reserved */
113 {"415", SM_ERROR, nickerr, NULL},
114/* 501 Disconnected by own request */
115 {"501", SM_INFO, NULL, NULL},
116/* 502 Disconnected by operator */
117 {"502", SM_INFO, NULL, NULL},
118/* END OF MESSAGES */
119 {"", SM_IGNORE, NULL, NULL}
120};