]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_passforward.cpp
m_spanningtree Remove duplicate code for sending channel messages from RouteCommand()
[user/henk/code/inspircd.git] / src / modules / m_passforward.cpp
index 6e29f272b300cc090ff9eacf452374f485990d15..7f3cb6421ff4dd668f7f998dae204917dfc33d30 100644 (file)
@@ -17,8 +17,6 @@
  */
 
 
-/* $ModDesc: Forwards a password users can send on connect (for example for NickServ identification). */
-
 #include "inspircd.h"
 
 class ModulePassForward : public Module
@@ -29,8 +27,6 @@ class ModulePassForward : public Module
        void init() CXX11_OVERRIDE
        {
                OnRehash(NULL);
-               Implementation eventlist[] = { I_OnPostConnect, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        Version GetVersion() CXX11_OVERRIDE
@@ -90,7 +86,7 @@ class ModulePassForward : public Module
                if (!nickrequired.empty())
                {
                        /* Check if nick exists and its server is ulined */
-                       User* u = ServerInstance->FindNick(nickrequired.c_str());
+                       User* u = ServerInstance->FindNick(nickrequired);
                        if (!u || !ServerInstance->ULine(u->server))
                                return;
                }