X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_banredirect.cpp;h=c79023ccf5f0bd85222684906ee2e974e5d49d01;hb=3a01b55a118d4937b75541fbf385180f7106fa12;hp=8e4c5c6e52d50ef45a288fd2532c70b1d8f514b0;hpb=ca838821e7c53da0ddaee35d9a401e3a5eaf8c8c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index 8e4c5c6e5..c79023ccf 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -50,7 +50,7 @@ class BanRedirect : public ModeWatcher public: SimpleExtItem extItem; BanRedirect(Module* parent) - : ModeWatcher(parent, 'b', MODETYPE_CHANNEL) + : ModeWatcher(parent, "ban", MODETYPE_CHANNEL) , ban(parent, "ban") , extItem("banredirect", parent) { @@ -228,9 +228,7 @@ class ModuleBanRedirect : public Module void init() CXX11_OVERRIDE { - if(!ServerInstance->Modes->AddModeWatcher(&re)) - throw ModuleException("Could not add mode watcher"); - + ServerInstance->Modes->AddModeWatcher(&re); ServerInstance->Modules->AddService(re.extItem); Implementation list[] = { I_OnUserPreJoin }; ServerInstance->Modules->Attach(list, this, sizeof(list)/sizeof(Implementation));