mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
Fixed m_saquit to direct the command to the user's server and from there send a QUIT to all servers, to prevent desyncs in services and such that don't support saquit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8046 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
bd37495db0
commit
f5c1e06b54
@ -37,12 +37,16 @@ class cmd_saquit : public command_t
|
||||
user->WriteServ("990 %s :Cannot use an SA command on a u-lined client",user->nick);
|
||||
return CMD_FAILURE;
|
||||
}
|
||||
|
||||
irc::stringjoiner reason_join(" ", parameters, 1, pcnt - 1);
|
||||
std::string line = reason_join.GetJoined();
|
||||
|
||||
ServerInstance->WriteOpers("*** "+std::string(user->nick)+" used SAQUIT to make "+std::string(dest->nick)+" quit with a reason of "+line);
|
||||
|
||||
// Pass the command on, so the client's server can quit it properly.
|
||||
if (!IS_LOCAL(dest))
|
||||
return CMD_SUCCESS;
|
||||
|
||||
userrec::QuitUser(ServerInstance, dest, line);
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user