// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+// 02110-1301, USA.
#ifndef SCRIPTCOMMANDS_H
#define SCRIPTCOMMANDS_H
#ifdef USESCRIPTS
#include <libguile.h>
-#include "Commands.H"
+
+#include <functional>
+
+class User;
class ScriptCommands {
public:
static SCM AddServer(SCM, SCM);
static SCM AddShit(SCM, SCM, SCM, SCM, SCM);
static SCM Ban(SCM, SCM);
- static SCM ChangeLevel(SCM, SCM, SCM);
+ static SCM ChangeCommandLevel(SCM, SCM);
+ static SCM ChannelUsers (SCM);
+ static SCM CTCP(SCM, SCM, SCM);
+ static SCM CTCPReply(SCM, SCM, SCM);
static SCM Cycle(SCM);
static SCM Deban(SCM, SCM);
static SCM DelServer(SCM);
static SCM Msg(SCM, SCM);
static SCM NextServer(void);
static SCM Nick(SCM);
+ static SCM Notice (SCM, SCM);
static SCM Op(SCM, SCM);
static SCM Part(SCM);
static SCM Reconnect(void);
static SCM Say(SCM, SCM);
static SCM Server(SCM); // ACK NAMING CLASH
+ static SCM SetFloodRate(SCM);
static SCM SetVersion(SCM);
static SCM TBan(SCM, SCM, SCM);
static SCM TKBan(SCM, SCM, SCM, SCM);
static SCM Topic(SCM, SCM);
static SCM Unlock(SCM);
+ static SCM Who(SCM);
+ static SCM Whois(SCM);
static SCM getNickname(void);
static SCM getServer(void);
static SCM AddTimer(SCM, SCM);
static SCM DelTimer(SCM);
- // Message sending
- static SCM sendCTCP(SCM, SCM, SCM);
+ // DCC CHAT
+ static SCM sendDCCChatMessage (SCM, SCM);
+
/*
- SCM sendCTCPReply(SCM, SCM, SCM);
SCM sendChannelMode(SCM);
SCM sendChannelMode(SCM, SCM, SCM);
SCM sendInvite(SCM, SCM);
SCM sendJoin(SCM, SCM);
SCM sendKick(SCM, SCM, SCM);
SCM sendNick(SCM);
- SCM sendNotice(SCM, SCM);
+ */
+ /*
SCM sendPart(SCM);
SCM sendPass(SCM);
SCM sendPing(SCM);
SCM sendWho(SCM);
SCM sendWhois(SCM);
*/
-
+private:
+ struct collect_channel_users : std::binary_function<SCM*, User, void>
+ {
+ void operator() (SCM*, User) const;
+ };
};
#endif