X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_allowinvite.cpp;h=08a5f542aeab68ac8e36e6b469cc615e015d1989;hb=09186df9f8c0d4f699b5abb4325d7dd583a8a0b1;hp=a53b934a68c016f1664b01f541424fb8b2172a56;hpb=84a1569cd60daa64b1ae52a1fff62c0dc4d78850;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_allowinvite.cpp b/src/modules/m_allowinvite.cpp index a53b934a6..08a5f542a 100644 --- a/src/modules/m_allowinvite.cpp +++ b/src/modules/m_allowinvite.cpp @@ -19,7 +19,7 @@ #include "inspircd.h" -/* $ModDesc: Provides support for channel mode +A, allowing /invite freely on a channel (and extban A to allow specific users it) */ +/* $ModDesc: Provides support for channel mode +A, allowing /invite freely on a channel and extban A to deny specific users it */ class AllowInvite : public SimpleChannelModeHandler { @@ -38,8 +38,7 @@ class ModuleAllowInvite : public Module void init() { - if (!ServerInstance->Modes->AddMode(&ni)) - throw ModuleException("Could not add new modes!"); + ServerInstance->Modules->AddService(ni); Implementation eventlist[] = { I_OnUserPreInvite, I_On005Numeric }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } @@ -76,7 +75,7 @@ class ModuleAllowInvite : public Module virtual Version GetVersion() { - return Version("Provides support for channel mode +A, allowing /invite freely on a channel (and extban A to allow specific users it)",VF_VENDOR); + return Version("Provides support for channel mode +A, allowing /invite freely on a channel and extban A to deny specific users it",VF_VENDOR); } };