diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 2 | ||||
-rw-r--r-- | include/modes/cmode_b.h | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/include/mode.h b/include/mode.h index f515b1d16..1c3fcfe77 100644 --- a/include/mode.h +++ b/include/mode.h @@ -113,8 +113,6 @@ class ModeParser 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); - char* AddBan(userrec *user,char *dest,chanrec *chan,int status); - char* TakeBan(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); diff --git a/include/modes/cmode_b.h b/include/modes/cmode_b.h new file mode 100644 index 000000000..4c41e3250 --- /dev/null +++ b/include/modes/cmode_b.h @@ -0,0 +1,11 @@ +#include "mode.h" + +class ModeChannelBan : public ModeHandler +{ + public: + ModeChannelBan(); + ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); + std::string& AddBan(userrec *user,std::string& dest,chanrec *chan,int status); + std::string& DelBan(userrec *user,std::string& dest,chanrec *chan,int status); +}; + |