1 // ScriptCommands.H -*- C++ -*-
2 // Copyright (c) 1998 Etienne BERNARD
3 // Copyright (c) 2002 Clinton Ebadi
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
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 Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 #ifndef SCRIPTCOMMANDS_H
21 #define SCRIPTCOMMANDS_H
32 class ScriptCommands {
34 static SCM Action(SCM, SCM);
35 static SCM AddUser(SCM, SCM, SCM, SCM, SCM, SCM, SCM);
36 static SCM AddServer(SCM, SCM);
37 static SCM AddShit(SCM, SCM, SCM, SCM, SCM);
38 static SCM Ban(SCM, SCM);
39 static SCM ChangeCommandLevel(SCM, SCM);
40 static SCM Cycle(SCM);
41 static SCM Deban(SCM, SCM);
42 static SCM DelServer(SCM);
43 static SCM DelUser(SCM, SCM);
44 static SCM DelShit(SCM, SCM);
45 static SCM Deop(SCM, SCM);
48 static SCM Invite(SCM, SCM);
49 static SCM Join(SCM, SCM);
50 static SCM Keep(SCM, SCM);
51 static SCM Kick(SCM, SCM, SCM);
52 static SCM KickBan(SCM, SCM, SCM);
54 static SCM LogPort(void);
55 static SCM Mode(SCM, SCM);
56 static SCM Msg(SCM, SCM);
57 static SCM NextServer(void);
59 static SCM Op(SCM, SCM);
61 static SCM Reconnect(void);
62 static SCM Say(SCM, SCM);
63 static SCM Server(SCM); // ACK NAMING CLASH
64 static SCM SetFloodRate(SCM);
65 static SCM SetVersion(SCM);
66 static SCM TBan(SCM, SCM, SCM);
67 static SCM TKBan(SCM, SCM, SCM, SCM);
68 static SCM Topic(SCM, SCM);
69 static SCM Unlock(SCM);
71 static SCM getNickname(void);
72 static SCM getServer(void);
73 static SCM getServerList(void);
74 static SCM flushQueue(void);
75 static SCM flushPort(void);
76 static SCM random(SCM);
77 static SCM addCommand(SCM, SCM, SCM, SCM, SCM);
78 static SCM delCommand(SCM);
79 static SCM AddHook(SCM, SCM, SCM, SCM, SCM, SCM);
80 static SCM AddTimer(SCM, SCM);
81 static SCM DelTimer(SCM);
84 static SCM sendDCCChatMessage (SCM, SCM);
87 static SCM sendCTCP(SCM, SCM, SCM);
88 static SCM sendCTCPReply(SCM, SCM, SCM);
90 SCM sendChannelMode(SCM);
91 SCM sendChannelMode(SCM, SCM, SCM);
92 SCM sendInvite(SCM, SCM);
93 SCM sendJoin(SCM, SCM);
94 SCM sendKick(SCM, SCM, SCM);
97 static SCM sendNotice(SCM, SCM);
103 SCM sendPrivmsg(SCM, SCM);
105 SCM sendTopic(SCM, SCM);
106 SCM sendUser(SCM, SCM);
107 SCM sendUserMode(SCM, SCM);
108 SCM sendUserhost(SCM);