1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
20 // include the common header files
35 char* GiveOps(userrec *user,char *dest,chanrec *chan,int status);
36 char* GiveHops(userrec *user,char *dest,chanrec *chan,int status);
37 char* GiveVoice(userrec *user,char *dest,chanrec *chan,int status);
38 char* TakeOps(userrec *user,char *dest,chanrec *chan,int status);
39 char* TakeHops(userrec *user,char *dest,chanrec *chan,int status);
40 char* TakeVoice(userrec *user,char *dest,chanrec *chan,int status);
41 char* AddBan(userrec *user,char *dest,chanrec *chan,int status);
42 char* TakeBan(userrec *user,char *dest,chanrec *chan,int status);
44 std::string CompressModes(std::string modes,bool channelmodes);
45 void ProcessModes(char **parameters,userrec* user,chanrec *chan,int status, int pcnt, bool servermode, bool silent, bool local);
46 bool AllowedUmode(char umode, char* sourcemodes,bool adding,bool serveroverride);
47 bool ProcessModuleUmode(char umode, userrec* source, void* dest, bool adding);
48 void ServerMode(char **parameters, int pcnt, userrec *user);
51 class cmd_mode : public command_t
54 cmd_mode () : command_t("MODE",0,1) { }
55 void Handle(char **parameters, int pcnt, userrec *user);