cb21075d |
1 | // ScriptCommands.H -*- C++ -*- |
2 | // Copyright (c) 1998 Etienne BERNARD |
3 | // Copyright (c) 2002 Clinton Ebadi |
4 | |
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 | // any later version. |
9 | |
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. |
14 | |
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
18 | |
19 | #ifndef SCRIPTCOMMANDS_H |
20 | #define SCRIPTCOMMANDS_H |
21 | |
22 | #ifdef HAVE_CONFIG_H |
23 | #include "config.h" |
24 | #endif |
25 | |
26 | #ifdef USESCRIPTS |
27 | |
28 | #include <libguile.h> |
29 | #include "Commands.H" |
30 | |
31 | class ScriptCommands { |
32 | public: |
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); |
4edefeb6 |
38 | static SCM ChangeCommandLevel(SCM, SCM); |
cb21075d |
39 | static SCM Cycle(SCM); |
40 | static SCM Deban(SCM, SCM); |
41 | static SCM DelServer(SCM); |
42 | static SCM DelUser(SCM, SCM); |
43 | static SCM DelShit(SCM, SCM); |
44 | static SCM Deop(SCM, SCM); |
45 | static SCM Die(SCM); |
46 | static SCM Do(SCM); |
47 | static SCM Invite(SCM, SCM); |
48 | static SCM Join(SCM, SCM); |
49 | static SCM Keep(SCM, SCM); |
50 | static SCM Kick(SCM, SCM, SCM); |
51 | static SCM KickBan(SCM, SCM, SCM); |
52 | static SCM Lock(SCM); |
53 | static SCM LogPort(void); |
54 | static SCM Mode(SCM, SCM); |
55 | static SCM Msg(SCM, SCM); |
56 | static SCM NextServer(void); |
57 | static SCM Nick(SCM); |
58 | static SCM Op(SCM, SCM); |
59 | static SCM Part(SCM); |
60 | static SCM Reconnect(void); |
61 | static SCM Say(SCM, SCM); |
62 | static SCM Server(SCM); // ACK NAMING CLASH |
e171dcce |
63 | static SCM SetFloodRate(SCM); |
cb21075d |
64 | static SCM SetVersion(SCM); |
65 | static SCM TBan(SCM, SCM, SCM); |
66 | static SCM TKBan(SCM, SCM, SCM, SCM); |
67 | static SCM Topic(SCM, SCM); |
68 | static SCM Unlock(SCM); |
69 | |
70 | static SCM getNickname(void); |
71 | static SCM getServer(void); |
72 | static SCM getServerList(void); |
73 | static SCM flushQueue(void); |
74 | static SCM flushPort(void); |
75 | static SCM random(SCM); |
76 | static SCM addCommand(SCM, SCM, SCM, SCM, SCM); |
77 | static SCM delCommand(SCM); |
fd7440f1 |
78 | static SCM AddHook(SCM, SCM, SCM, SCM, SCM, SCM); |
cb21075d |
79 | static SCM AddTimer(SCM, SCM); |
80 | static SCM DelTimer(SCM); |
e07b6b46 |
81 | |
0b7a49e2 |
82 | // DCC CHAT |
83 | static SCM sendDCCChatMessage (SCM, SCM); |
84 | |
e07b6b46 |
85 | // Message sending |
c8f13c06 |
86 | static SCM sendCTCP(SCM, SCM, SCM); |
e07b6b46 |
87 | /* |
88 | SCM sendCTCPReply(SCM, SCM, SCM); |
89 | SCM sendChannelMode(SCM); |
90 | SCM sendChannelMode(SCM, SCM, SCM); |
91 | SCM sendInvite(SCM, SCM); |
92 | SCM sendJoin(SCM, SCM); |
93 | SCM sendKick(SCM, SCM, SCM); |
94 | SCM sendNick(SCM); |
5aec4622 |
95 | */ |
96 | static SCM sendNotice(SCM, SCM); |
97 | /* |
e07b6b46 |
98 | SCM sendPart(SCM); |
99 | SCM sendPass(SCM); |
100 | SCM sendPing(SCM); |
101 | SCM sendPong(SCM); |
102 | SCM sendPrivmsg(SCM, SCM); |
103 | SCM sendQuit(SCM); |
104 | SCM sendTopic(SCM, SCM); |
105 | SCM sendUser(SCM, SCM); |
106 | SCM sendUserMode(SCM, SCM); |
107 | SCM sendUserhost(SCM); |
108 | SCM sendWho(SCM); |
109 | SCM sendWhois(SCM); |
110 | */ |
cb21075d |
111 | }; |
112 | |
113 | #endif |
114 | #endif |