summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-11-24 16:28:02 +0000
committerSadie Powell <sadie@witchery.services>2020-11-24 16:43:16 +0000
commitc71361e8e4f22cb4f72881399bce2832eb080b0e (patch)
tree21a83348fe97d638ad24288883d4511d05841728
parenta30a0074edac353cb60e134b43fa8ff0ffb67f8b (diff)
Fix some confusing logic in sanick.
-rw-r--r--src/modules/m_sanick.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp
index 5255d31b8..724553e3c 100644
--- a/src/modules/m_sanick.cpp
+++ b/src/modules/m_sanick.cpp
@@ -67,15 +67,15 @@ class CommandSanick : public Command
/* Have we hit target's server yet? */
if (target && IS_LOCAL(target))
{
- std::string oldnick = user->nick;
- std::string newnick = target->nick;
- if (target->ChangeNick(parameters[1]))
+ const std::string oldnick = target->nick;
+ const std::string newnick = parameters[1];
+ if (target->ChangeNick(newnick))
{
- ServerInstance->SNO->WriteGlobalSno('a', oldnick+" used SANICK to change "+newnick+" to "+parameters[1]);
+ ServerInstance->SNO->WriteGlobalSno('a', user->nick + " used SANICK to change " + oldnick + " to " + newnick);
}
else
{
- ServerInstance->SNO->WriteGlobalSno('a', oldnick+" failed SANICK (from "+newnick+" to "+parameters[1]+")");
+ ServerInstance->SNO->WriteGlobalSno('a', user->nick + " failed SANICK (from " + oldnick + " to " + newnick + ")");
}
}