]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_randquote.cpp
Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing WSAEWOULDBLOCK
[user/henk/code/inspircd.git] / src / modules / m_randquote.cpp
index f353701e1efdd8c79b2a6bdb81c4cf928b91a9c1..dab3c93cd3f0ada2cbd277dec34479133b91677c 100644 (file)
@@ -75,7 +75,7 @@ class ModuleRandQuote : public Module
                {
                        throw ModuleException("m_randquote: QuoteFile not Found!! Please check your config - module will not function.");
                }
-               ServerInstance->AddCommand(&cmd);
+               ServerInstance->Modules->AddService(cmd);
                Implementation eventlist[] = { I_OnUserConnect };
                ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }