mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Work around removing shuns on nicks when the nick is online.
This commit is contained in:
parent
e83506b7ab
commit
f57dbb6dbe
@ -114,13 +114,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(), 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->WriteServ("NOTICE %s :*** Shun %s not found in list, try /stats H.",user->nick.c_str(),target.c_str());
|
||||
user->WriteServ("NOTICE %s :*** Shun %s not found in list, try /stats H.", user->nick.c_str(), parameters[0].c_str());
|
||||
return CMD_FAILURE;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user