[project @ 2005-07-06 19:32:18 by unknown_lamer]
[clinton/bobotpp.git] / source / ScriptCommands.H
CommitLineData
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
32class ScriptCommands {
33public:
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);
c6e7af05 40 static SCM CTCP(SCM, SCM, SCM);
41 static SCM CTCPReply(SCM, SCM, SCM);
cb21075d 42 static SCM Cycle(SCM);
43 static SCM Deban(SCM, SCM);
44 static SCM DelServer(SCM);
45 static SCM DelUser(SCM, SCM);
46 static SCM DelShit(SCM, SCM);
47 static SCM Deop(SCM, SCM);
48 static SCM Die(SCM);
49 static SCM Do(SCM);
50 static SCM Invite(SCM, SCM);
51 static SCM Join(SCM, SCM);
52 static SCM Keep(SCM, SCM);
53 static SCM Kick(SCM, SCM, SCM);
54 static SCM KickBan(SCM, SCM, SCM);
55 static SCM Lock(SCM);
56 static SCM LogPort(void);
57 static SCM Mode(SCM, SCM);
58 static SCM Msg(SCM, SCM);
59 static SCM NextServer(void);
60 static SCM Nick(SCM);
c99c411a 61 static SCM Notice (SCM, SCM);
cb21075d 62 static SCM Op(SCM, SCM);
63 static SCM Part(SCM);
64 static SCM Reconnect(void);
65 static SCM Say(SCM, SCM);
66 static SCM Server(SCM); // ACK NAMING CLASH
e171dcce 67 static SCM SetFloodRate(SCM);
cb21075d 68 static SCM SetVersion(SCM);
69 static SCM TBan(SCM, SCM, SCM);
70 static SCM TKBan(SCM, SCM, SCM, SCM);
71 static SCM Topic(SCM, SCM);
72 static SCM Unlock(SCM);
c6e7af05 73 static SCM Who(SCM);
74 static SCM Whois(SCM);
cb21075d 75
76 static SCM getNickname(void);
77 static SCM getServer(void);
78 static SCM getServerList(void);
79 static SCM flushQueue(void);
80 static SCM flushPort(void);
81 static SCM random(SCM);
82 static SCM addCommand(SCM, SCM, SCM, SCM, SCM);
83 static SCM delCommand(SCM);
fd7440f1 84 static SCM AddHook(SCM, SCM, SCM, SCM, SCM, SCM);
cb21075d 85 static SCM AddTimer(SCM, SCM);
86 static SCM DelTimer(SCM);
e07b6b46 87
0b7a49e2 88 // DCC CHAT
89 static SCM sendDCCChatMessage (SCM, SCM);
90
e07b6b46 91 /*
e07b6b46 92 SCM sendChannelMode(SCM);
93 SCM sendChannelMode(SCM, SCM, SCM);
94 SCM sendInvite(SCM, SCM);
95 SCM sendJoin(SCM, SCM);
96 SCM sendKick(SCM, SCM, SCM);
97 SCM sendNick(SCM);
5aec4622 98 */
5aec4622 99 /*
e07b6b46 100 SCM sendPart(SCM);
101 SCM sendPass(SCM);
102 SCM sendPing(SCM);
103 SCM sendPong(SCM);
104 SCM sendPrivmsg(SCM, SCM);
105 SCM sendQuit(SCM);
106 SCM sendTopic(SCM, SCM);
107 SCM sendUser(SCM, SCM);
108 SCM sendUserMode(SCM, SCM);
109 SCM sendUserhost(SCM);
110 SCM sendWho(SCM);
111 SCM sendWhois(SCM);
112 */
cb21075d 113};
114
115#endif
116#endif