]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_invisible.cpp
Modify chanlog to send message remotely, too. Logging now works server <-> server...
[user/henk/code/inspircd.git] / src / modules / m_invisible.cpp
index 705d2a61444223a1979b88252c329486c11fa59f..b903941647d60bd6e9c97fb3d695c1c0b01d091e 100644 (file)
@@ -74,7 +74,7 @@ class InvisibleMode : public ModeHandler
 
                        if (!ok)
                        {
-                               source->WriteServ("481 %s :Permission Denied - You do not have access to become invisible via user mode +Q", source->nick);
+                               source->WriteNumeric(481, "%s :Permission Denied - You do not have access to become invisible via user mode +Q", source->nick);
                                return MODEACTION_DENY;
                        }
 
@@ -182,7 +182,7 @@ class ModuleInvisible : 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);
        }
 
        
@@ -245,7 +245,7 @@ class ModuleInvisible : public Module
                        User* target = (User*)dest;
                        if(target->IsModeSet('Q') && !*user->oper)
                        {
-                               user->WriteServ("401 %s %s :No such nick/channel",user->nick, target->nick);
+                               user->WriteNumeric(401, "%s %s :No such nick/channel",user->nick, target->nick);
                                return 1;
                        }
                }
@@ -258,7 +258,7 @@ class ModuleInvisible : public Module
        }
 
        /* Fix by Eric @ neowin.net, thanks :) -- Brain */
-       void WriteCommonFrom(User *user, Channel* channel, const char* text, ...)
+       void WriteCommonFrom(User *user, Channel* channel, const char* text, ...) CUSTOM_PRINTF(4,5)
        {
                va_list argsPtr;
                char textbuffer[MAXBUF];