]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nicklock.cpp
More stuff so that freebsd users can still use the ports version of openssl if they...
[user/henk/code/inspircd.git] / src / modules / m_nicklock.cpp
index 45a9d0ed4196fe05cf5dfd1b580f10ff96cda187..8fae4627907ea4eda4970968d3df2fe2c6e680cb 100644 (file)
@@ -58,8 +58,8 @@ class CommandNicklock : public Command
 
                if (!target->ForceNickChange(parameters[1]))
                {
-                       // ugh, nickchange failed for some reason -- possibly existing nick?
-                       User::QuitUser(ServerInstance, target, "Nickname collision");
+                       // ugh, nickchange failed for some reason -- possibly existing nick? XXX change to UID here
+                       ServerInstance->Users->QuitUser(target, "Nickname collision");
                }
 
                // give them a lock flag
@@ -121,7 +121,7 @@ class ModuleNickLock : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version(1, 2, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
        }