]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_vhost.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_vhost.cpp
index aac15f58aea63b366066fff7887e447fa94862f8..f3bbc1cfcf067e08d746107d8433f4b597d5c2a5 100644 (file)
@@ -56,7 +56,7 @@ class CommandVhost : public Command
                        }
                }
 
-               user->WriteServ("NOTICE "+std::string(user->nick)+" :Invalid username or password.");
+               user->WriteServ("NOTICE "+user->nick+" :Invalid username or password.");
                return CMD_FAILURE;
        }
 };
@@ -68,6 +68,10 @@ class ModuleVHost : public Module
 
  public:
        ModuleVHost() : cmd(this)
+       {
+       }
+
+       void init()
        {
                ServerInstance->AddCommand(&cmd);
        }