diff options
Diffstat (limited to 'include/builtinmodes.h')
-rw-r--r-- | include/builtinmodes.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/include/builtinmodes.h b/include/builtinmodes.h index ab1da8740..a4a950922 100644 --- a/include/builtinmodes.h +++ b/include/builtinmodes.h @@ -22,22 +22,17 @@ #include "mode.h" #include "channels.h" +#include "listmode.h" /** Channel mode +b */ -class ModeChannelBan : public ModeHandler +class ModeChannelBan : public ListModeBase { - private: - BanItem b; public: - ModeChannelBan(); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); - std::string& AddBan(User *user,std::string& dest,Channel *chan,int status); - std::string& DelBan(User *user,std::string& dest,Channel *chan,int status); - void DisplayList(User* user, Channel* channel); - void DisplayEmptyList(User* user, Channel* channel); - void RemoveMode(User* user, irc::modestacker* stack = NULL); - void RemoveMode(Channel* channel, irc::modestacker* stack = NULL); + ModeChannelBan() + : ListModeBase(NULL, "ban", 'b', "End of channel ban list", 367, 368, true, "maxbans") + { + } }; /** Channel mode +i |