]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_devoice.cpp
TRE regex provider (the same engine used by Unreal 3.2)
[user/henk/code/inspircd.git] / src / modules / m_devoice.cpp
index 75335885e69d9c60f151a3af069c6475f5e6d114..31952d0028cec4e7bdde0d4889aa12e4d7d6f555 100644 (file)
@@ -38,9 +38,9 @@ class CommandDevoice : public Command
                if (c && c->HasUser(user))
                {
                        std::vector<std::string> modes;
-                       modes[0] = parameters[0];
-                       modes[1] = "-v";
-                       modes[2] = user->nick;
+                       modes.push_back(parameters[0]);
+                       modes.push_back("-v");
+                       modes.push_back(user->nick);
 
                        ServerInstance->SendMode(modes, ServerInstance->FakeClient);
 
@@ -70,7 +70,7 @@ class ModuleDeVoice : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION);
        }
 };