]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_allowinvite.cpp
Update the cloaks of connected users when their IP address changes.
[user/henk/code/inspircd.git] / src / modules / m_allowinvite.cpp
index f4b2f14d4612c986319b3caba4798d4552bd5a7d..41edbc855d5162a7fe59458bda1bb0774a96f7aa 100644 (file)
 
 #include "inspircd.h"
 
-class AllowInvite : public SimpleChannelModeHandler
-{
- public:
-       AllowInvite(Module* Creator) : SimpleChannelModeHandler(Creator, "allowinvite", 'A') { }
-};
-
 class ModuleAllowInvite : public Module
 {
-       AllowInvite ni;
+       SimpleChannelModeHandler ni;
  public:
 
-       ModuleAllowInvite() : ni(this)
+       ModuleAllowInvite()
+               : ni(this, "allowinvite", 'A')
        {
        }
 
@@ -47,7 +42,7 @@ class ModuleAllowInvite : public Module
                        if (res == MOD_RES_DENY)
                        {
                                // Matching extban, explicitly deny /invite
-                               user->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s %s :You are banned from using INVITE", user->nick.c_str(), channel->name.c_str());
+                               user->WriteNumeric(ERR_CHANOPRIVSNEEDED, channel->name, "You are banned from using INVITE");
                                return res;
                        }
                        if (channel->IsModeSet(ni) || res == MOD_RES_ALLOW)