]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_noctcp.cpp
More stuff so that freebsd users can still use the ports version of openssl if they...
[user/henk/code/inspircd.git] / src / modules / m_noctcp.cpp
index 5407ffb9d254bd9daa6c41de2f32a825fdee2dbd..e68cf72a0971474628173677a4d2d054867c00af 100644 (file)
@@ -20,7 +20,7 @@ class NoCTCP : public ModeHandler
  public:
        NoCTCP(InspIRCd* Instance) : ModeHandler(Instance, 'C', 0, 0, false, MODETYPE_CHANNEL, false) { }
 
-       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
+       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool)
        {
                if (adding)
                {
@@ -84,7 +84,7 @@ class ModuleNoCTCP : public Module
                                {
                                        if (strncmp(text.c_str(),"\1ACTION ",8))
                                        {
-                                               user->WriteServ("492 %s %s :Can't send CTCP to channel (+C set)",user->nick, c->name);
+                                               user->WriteNumeric(492, "%s %s :Can't send CTCP to channel (+C set)",user->nick, c->name);
                                                return 1;
                                        }
                                }
@@ -101,7 +101,7 @@ class ModuleNoCTCP : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version(1,2,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
        }
 };