]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_swhois.cpp
Fix memory leak and invalid vtable location on unload of m_sslinfo
[user/henk/code/inspircd.git] / src / modules / m_swhois.cpp
index 75a0a4cddc238a5e21966c2bef128e7848332e52..cf14be3e1dde68e4dc12cf4e8fad90765b9f636e 100644 (file)
@@ -101,7 +101,7 @@ class ModuleSWhois : public Module
 
 
        // :kenny.chatspike.net 320 Brain Azhrarn :is getting paid to play games.
-       int OnWhoisLine(User* user, User* dest, int &numeric, std::string &text)
+       ModResult OnWhoisLine(User* user, User* dest, int &numeric, std::string &text)
        {
                /* We use this and not OnWhois because this triggers for remote, too */
                if (numeric == 312)
@@ -115,7 +115,7 @@ class ModuleSWhois : public Module
                }
 
                /* Dont block anything */
-               return 0;
+               return MOD_RES_PASSTHRU;
        }
 
        // Whenever the linking module wants to send out data, but doesnt know what the data