aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_nicklock.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-07-03 12:27:24 +0200
committerGravatar Attila Molnar2014-07-03 12:27:24 +0200
commit393cc8f9d65aefd92628115edae341562ea440e7 (patch)
tree65265c2c1e162cf228c0ea55ce5081c27bf1645f /src/modules/m_nicklock.cpp
parentMove calling the OnUserPreNick() hook and the restrictbannedusers check from ... (diff)
downloadinspircd++-393cc8f9d65aefd92628115edae341562ea440e7.tar.gz
inspircd++-393cc8f9d65aefd92628115edae341562ea440e7.tar.bz2
inspircd++-393cc8f9d65aefd92628115edae341562ea440e7.zip
Remove now needless User::ForceNickChange()
Change call sites to call ChangeNick()
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 21f02fe11..9bf16498a 100644
--- a/src/modules/m_nicklock.cpp
+++ b/src/modules/m_nicklock.cpp
@@ -64,7 +64,7 @@ class CommandNicklock : public Command
locked.set(target, 1);
std::string oldnick = target->nick;
- if (target->ForceNickChange(parameters[1]))
+ if (target->ChangeNick(parameters[1]))
ServerInstance->SNO->WriteGlobalSno('a', user->nick+" used NICKLOCK to change and hold "+oldnick+" to "+parameters[1]);
else
{