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
31 class ScriptCommands {
33 static SCM Action(SCM, SCM);
34 static SCM AddUser(SCM, SCM, SCM, SCM, SCM, SCM, SCM);
35 static SCM AddServer(SCM, SCM);
36 static SCM AddShit(SCM, SCM, SCM, SCM, SCM);
37 static SCM Ban(SCM, SCM);
38 static SCM ChangeCommandLevel(SCM, SCM);
39 static SCM CTCP(SCM, SCM, SCM);
40 static SCM CTCPReply(SCM, SCM, SCM);
41 static SCM Cycle(SCM);
42 static SCM Deban(SCM, SCM);
43 static SCM DelServer(SCM);
44 static SCM DelUser(SCM, SCM);
45 static SCM DelShit(SCM, SCM);
46 static SCM Deop(SCM, SCM);
49 static SCM Invite(SCM, SCM);
50 static SCM Join(SCM, SCM);
51 static SCM Keep(SCM, SCM);
52 static SCM Kick(SCM, SCM, SCM);
53 static SCM KickBan(SCM, SCM, SCM);
55 static SCM LogPort(void);
56 static SCM Mode(SCM, SCM);
57 static SCM Msg(SCM, SCM);
58 static SCM NextServer(void);
60 static SCM Notice (SCM, SCM);
61 static SCM Op(SCM, SCM);
63 static SCM Reconnect(void);
64 static SCM Say(SCM, SCM);
65 static SCM Server(SCM); // ACK NAMING CLASH
66 static SCM SetFloodRate(SCM);
67 static SCM SetVersion(SCM);
68 static SCM TBan(SCM, SCM, SCM);
69 static SCM TKBan(SCM, SCM, SCM, SCM);
70 static SCM Topic(SCM, SCM);
71 static SCM Unlock(SCM);
73 static SCM Whois(SCM);
75 static SCM getNickname(void);
76 static SCM getServer(void);
77 static SCM getServerList(void);
78 static SCM flushQueue(void);
79 static SCM flushPort(void);
80 static SCM random(SCM);
81 static SCM addCommand(SCM, SCM, SCM, SCM, SCM);
82 static SCM delCommand(SCM);
83 static SCM AddHook(SCM, SCM, SCM, SCM, SCM, SCM);
84 static SCM AddTimer(SCM, SCM);
85 static SCM DelTimer(SCM);
88 static SCM sendDCCChatMessage (SCM, SCM);
91 SCM sendChannelMode(SCM);
92 SCM sendChannelMode(SCM, SCM, SCM);
93 SCM sendInvite(SCM, SCM);
94 SCM sendJoin(SCM, SCM);
95 SCM sendKick(SCM, 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);