1 /***************************************************************************
2 * Copyright (C) 2005/06 by The Quassel Team *
3 * devel@quassel-irc.org *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
21 #error THIS CODE IS OBSOLETE!
23 /* We are keeping this for further reference only.
24 * This method of defining server commands sucked, but at least we have a quite complete list
28 /** This macro marks strings as translateable for Qt's linguist tools */
29 #define _(str) QT_TR_NOOP(str)
32 /** Defines the message codes according to RFCs 1495/281x.
33 * Named commands have a negative enum value.
36 BuiltinCmd builtins[] = {
37 { CMD_ADMIN, "admin", _("Get information about the administrator of a server."),
38 _("[server]"), _("server: Server"), 0, 0 },
39 { CMD_AME, "ame", "", "", "", 0, 0 },
40 { CMD_AMSG, "amsg", _("Send message to all channels of all connected servers."),
41 _("message"), _("message: Message to send"), 0, 0 },
42 { CMD_AWAY, "away", _("Toggle away status."),
43 _("[-all] [message]"), _(" -all: Toggle status on all connected servers\n"
44 "message: Away message (away status is removed if no message is given)"), 0, 0 },
45 { CMD_BAN, "ban", _("Ban a nickname or hostmask."),
46 _("[channel] [nick [nick ...]]"), _("channel: Channel for ban (current of empty)\n"
47 " nick: Nickname or hostmask. If no nicknames are given, /ban displays the current banlist."), 0, 0 },
48 { CMD_CTCP, "ctcp", _("Send a CTCP message (Client-To-Client Protocol)"),
49 _("target type [args]"), _("target: Nick or channel to send CTCP to\n"
50 " type: CTCP Type (e.g. VERSION, PING, CHAT...)\n"
51 " args: Arguments for CTCP"), 0, 0 },
52 { CMD_CYCLE, "cycle", "", "", "", 0, 0 },
53 { CMD_DEHALFOP, "dehalfop", "", "", "", 0, 0 },
54 { CMD_DEOP, "deop", "", "", "", 0, 0 },
55 { CMD_DEVOICE, "devoice", "", "", "", 0, 0 },
56 { CMD_DIE, "die", "", "", "", 0, 0 },
57 { CMD_ERROR, "error", "", "", "", 0, 0 },
58 { CMD_HALFOP, "halfop", "", "", "", 0, 0 },
59 { CMD_INFO, "info", "", "", "", 0, 0 },
60 { CMD_INVITE, "invite", "", "", "", 0, 0 },
61 { CMD_ISON, "ison", "", "", "", 0, 0 },
62 { CMD_JOIN, "join", "", "", "", 0, 0 },
63 { CMD_KICK, "kick", "", "", "", 0, 0 },
64 { CMD_KICKBAN, "kickban", "", "", "", 0, 0 },
65 { CMD_KILL, "kill", "", "", "", 0, 0 },
66 { CMD_LINKS, "links", "", "", "", 0, 0 },
67 { CMD_LIST, "list", "", "", "", 0, 0 },
68 { CMD_LUSERS, "lusers", "", "", "", 0, 0 },
69 { CMD_ME, "me", "", "", "", 0, 0 },
70 { CMD_MODE, "mode", "", "", "", 0, 0 },
71 { CMD_MOTD, "motd", "", "", "", 0, 0 },
72 { CMD_MSG, "msg", "", "", "", 0, 0 },
73 { CMD_NAMES, "names", "", "", "", 0, 0 },
74 { CMD_NICK, "nick", "", "", "", 0, 0 },
75 { CMD_NOTICE, "notice", _("Send notice message to user."),
76 _("nick message"), _(" nick: user to send notice to\n"
77 "message: text to send"), 0, 0 },
78 { CMD_OP, "op", "", "", "", 0, 0 },
79 { CMD_OPER, "oper", "", "", "", 0, 0 },
80 { CMD_PART, "part", "", "", "", 0, 0 },
81 { CMD_PING, "ping", _("Ping a server."),
82 _("server1 [server2]"), _("server1: Server to ping\nserver2: Forward ping to this server"), 0, 0 },
83 { CMD_PONG, "pong", "", "", "", 0, 0 },
84 { CMD_PRIVMSG, "privmsg", "", "", "", 0, 0 },
85 { CMD_QUERY, "query", "", "", "", 0, 0 },
86 { CMD_QUIT, "quit", "", "", "", 0, 0 },
87 { CMD_QUOTE, "quote", "", "", "", 0, 0 },
88 { CMD_REHASH, "rehash", "", "", "", 0, 0 },
89 { CMD_RESTART, "restart", "", "", "", 0, 0 },
90 { CMD_SERVICE, "service", "", "", "", 0, 0 },
91 { CMD_SERVLIST, "servlist", "", "", "", 0, 0 },
92 { CMD_SQUERY, "squery", "", "", "", 0, 0 },
93 { CMD_SQUIT, "squit", "", "", "", 0, 0 },
94 { CMD_STATS, "stats", "", "", "", 0, 0 },
95 { CMD_SUMMON, "summon", "", "", "", 0, 0 },
96 { CMD_TIME, "time", "", "", "", 0, 0 },
97 { CMD_TOPIC, "topic", "", "", "", 0, 0 },
98 { CMD_TRACE, "trace", "", "", "", 0, 0 },
99 { CMD_UNBAN, "unban", "", "", "", 0, 0 },
100 { CMD_USERHOST, "userhost", "", "", "", 0, 0 },
101 { CMD_USERS, "users", "", "", "", 0, 0 },
102 { CMD_VERSION, "version", "", "", "", 0, 0 },
103 { CMD_VOICE, "voice", "", "", "", 0, 0 },
104 { CMD_WALLOPS, "wallops", "", "", "", 0, 0 },
105 { CMD_WHO, "who", "", "", "", 0, 0 },
106 { CMD_WHOIS, "whois", "", "", "", 0, 0 },
107 { CMD_WHOWAS, "whowas", "", "", "", 0, 0 },
109 { 0, 0, 0, 0, 0, 0, 0 }