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 |
ae97d6ec |
17 | // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
18 | // 02110-1301, USA. |
cb21075d |
19 | |
20 | #ifndef SCRIPTCOMMANDS_H |
21 | #define SCRIPTCOMMANDS_H |
22 | |
23 | #ifdef HAVE_CONFIG_H |
24 | #include "config.h" |
25 | #endif |
26 | |
27 | #ifdef USESCRIPTS |
28 | |
29 | #include <libguile.h> |
30 | #include "Commands.H" |
31 | |
32 | class ScriptCommands { |
33 | public: |
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); |
4edefeb6 |
39 | static SCM ChangeCommandLevel(SCM, SCM); |
cb21075d |
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); |
46 | static SCM Die(SCM); |
47 | static SCM Do(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); |
53 | static SCM Lock(SCM); |
54 | static SCM LogPort(void); |
55 | static SCM Mode(SCM, SCM); |
56 | static SCM Msg(SCM, SCM); |
57 | static SCM NextServer(void); |
58 | static SCM Nick(SCM); |
59 | static SCM Op(SCM, SCM); |
60 | static SCM Part(SCM); |
61 | static SCM Reconnect(void); |
62 | static SCM Say(SCM, SCM); |
63 | static SCM Server(SCM); // ACK NAMING CLASH |
e171dcce |
64 | static SCM SetFloodRate(SCM); |
cb21075d |
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); |
70 | |
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); |
fd7440f1 |
79 | static SCM AddHook(SCM, SCM, SCM, SCM, SCM, SCM); |
cb21075d |
80 | static SCM AddTimer(SCM, SCM); |
81 | static SCM DelTimer(SCM); |
e07b6b46 |
82 | |
0b7a49e2 |
83 | // DCC CHAT |
84 | static SCM sendDCCChatMessage (SCM, SCM); |
85 | |
e07b6b46 |
86 | // Message sending |
672b7d4e |
87 | static SCM sendCTCP(SCM, SCM, SCM); |
88 | static SCM sendCTCPReply(SCM, SCM, SCM); |
e07b6b46 |
89 | /* |
e07b6b46 |
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); |
95 | SCM sendNick(SCM); |
5aec4622 |
96 | */ |
97 | static SCM sendNotice(SCM, SCM); |
98 | /* |
e07b6b46 |
99 | SCM sendPart(SCM); |
100 | SCM sendPass(SCM); |
101 | SCM sendPing(SCM); |
102 | SCM sendPong(SCM); |
103 | SCM sendPrivmsg(SCM, SCM); |
104 | SCM sendQuit(SCM); |
105 | SCM sendTopic(SCM, SCM); |
106 | SCM sendUser(SCM, SCM); |
107 | SCM sendUserMode(SCM, SCM); |
108 | SCM sendUserhost(SCM); |
109 | SCM sendWho(SCM); |
110 | SCM sendWhois(SCM); |
111 | */ |
cb21075d |
112 | }; |
113 | |
114 | #endif |
115 | #endif |