aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2017-11-12 17:33:21 +0000
committerGravatar Peter Powell2017-11-12 17:33:21 +0000
commitd23c030c9a8fd58807438245a004e4aa5b7288ba (patch)
treed1207d9f811ba486470ac3869052b0bc2180f758 /src/modules/m_shun.cpp
parentAllow spaces in the network name now it doesn't cause problems. (diff)
parentRelease v2.0.25 (diff)
downloadinspircd++-d23c030c9a8fd58807438245a004e4aa5b7288ba.tar.gz
inspircd++-d23c030c9a8fd58807438245a004e4aa5b7288ba.tar.bz2
inspircd++-d23c030c9a8fd58807438245a004e4aa5b7288ba.zip
Merge tag 'v2.0.25' into master.
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 417d67b69..66cc7fd58 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -106,13 +106,17 @@ class CommandShun : public Command
if (parameters.size() == 1)
{
- if (ServerInstance->XLines->DelLine(target.c_str(), "SHUN", user))
+ if (ServerInstance->XLines->DelLine(parameters[0].c_str(), "SHUN", user))
{
- ServerInstance->SNO->WriteToSnoMask('x',"%s removed SHUN on %s",user->nick.c_str(),target.c_str());
+ ServerInstance->SNO->WriteToSnoMask('x', "%s removed SHUN on %s", user->nick.c_str(), parameters[0].c_str());
+ }
+ else if (ServerInstance->XLines->DelLine(target.c_str(), "SHUN", user))
+ {
+ ServerInstance->SNO->WriteToSnoMask('x',"%s removed SHUN on %s", user->nick.c_str(), target.c_str());
}
else
{
- user->WriteNotice("*** Shun " + target + " not found in list, try /stats H.");
+ user->WriteNotice("*** Shun " + parameters[0] + " not found in list, try /stats H.");
return CMD_FAILURE;
}
}