X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_nicklock.cpp;h=8fae4627907ea4eda4970968d3df2fe2c6e680cb;hb=caa89fb37c532930805f0b144e3298624ec1adec;hp=45a9d0ed4196fe05cf5dfd1b580f10ff96cda187;hpb=68730d4c9701b34c962302e6410908865fb2ba28;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp index 45a9d0ed4..8fae46279 100644 --- a/src/modules/m_nicklock.cpp +++ b/src/modules/m_nicklock.cpp @@ -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); }