diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 20 | ||||
-rw-r--r-- | include/modes/cmode_o.h | 13 |
2 files changed, 24 insertions, 9 deletions
diff --git a/include/mode.h b/include/mode.h index e32e7532a..40055ab4c 100644 --- a/include/mode.h +++ b/include/mode.h @@ -228,21 +228,23 @@ class ModeParser * we have 256 lists of them. */ std::vector<ModeWatcher*> modewatchers[256]; - - char* GiveOps(userrec *user,char *dest,chanrec *chan,int status); - char* GiveHops(userrec *user,char *dest,chanrec *chan,int status); + + /*char* GiveHops(userrec *user,char *dest,chanrec *chan,int status); char* GiveVoice(userrec *user,char *dest,chanrec *chan,int status); - char* TakeOps(userrec *user,char *dest,chanrec *chan,int status); char* TakeHops(userrec *user,char *dest,chanrec *chan,int status); - char* TakeVoice(userrec *user,char *dest,chanrec *chan,int status); - userrec* SanityChecks(userrec *user,char *dest,chanrec *chan,int status); - char* Grant(userrec *d,chanrec *chan,int MASK); - char* Revoke(userrec *d,chanrec *chan,int MASK); + char* TakeVoice(userrec *user,char *dest,chanrec *chan,int status);*/ + public: + ModeParser(); + + static userrec* SanityChecks(userrec *user,const char *dest,chanrec *chan,int status); + static const char* Grant(userrec *d,chanrec *chan,int MASK); + static const char* Revoke(userrec *d,chanrec *chan,int MASK); + static void CleanMask(std::string &mask); + bool AddMode(ModeHandler* mh, unsigned const char modeletter); void Process(char **parameters, int pcnt, userrec *user, bool servermode); - static void CleanMask(std::string &mask); }; class cmd_mode : public command_t diff --git a/include/modes/cmode_o.h b/include/modes/cmode_o.h new file mode 100644 index 000000000..cf223b97f --- /dev/null +++ b/include/modes/cmode_o.h @@ -0,0 +1,13 @@ +#include "mode.h" +#include "channels.h" + +class ModeChannelOp : public ModeHandler +{ + private: + public: + ModeChannelOp(); + ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); + std::string AddOp(userrec *user,const char *dest,chanrec *chan,int status); + std::string DelOp(userrec *user,const char *dest,chanrec *chan,int status); +}; + |