summaryrefslogtreecommitdiff
path: root/src/modules/m_nicklock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nicklock.cpp')
-rw-r--r--src/modules/m_nicklock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp
index 58a4c2686..f6f88993a 100644
--- a/src/modules/m_nicklock.cpp
+++ b/src/modules/m_nicklock.cpp
@@ -53,7 +53,7 @@ class cmd_nicklock : public command_t
user->WriteServ("946 %s %s :This user's nickname is already locked.",user->nick,source->nick);
return;
}
- if (Srv->IsNick(std::string(parameters[1])))
+ if (ServerInstance->IsNick(parameters[1]))
{
// give them a lock flag
ServerInstance->WriteOpers(std::string(user->nick)+" used NICKLOCK to change and hold "+parameters[0]+" to "+parameters[1]);