Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #205 from Robby-/insp21-swapipquit
[2.1] Snomask qQ: Swap quit message and IP for easier parsing by bots or scripts
  • Loading branch information
Sir Pogsalot committed Jun 12, 2012
2 parents 9726a62 + 3df92f3 commit 3b8085a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/usermanager.cpp
Expand Up @@ -185,24 +185,24 @@ void UserManager::QuitUser(User *user, const std::string &quitreason, const char

/*
* this must come before the ServerInstance->SNO->WriteToSnoMaskso that it doesnt try to fill their buffer with anything
* if they were an oper with +sn +qQ.
* if they were an oper with +s +qQ.
*/
if (user->registered == REG_ALL)
{
if (IS_LOCAL(user))
{
if (!user->quietquit)
{
ServerInstance->SNO->WriteToSnoMask('q',"Client exiting: %s!%s@%s [%s] (%s)",
user->nick.c_str(), user->ident.c_str(), user->host.c_str(), oper_reason.c_str(), user->GetIPString());
ServerInstance->SNO->WriteToSnoMask('q',"Client exiting: %s!%s@%s (%s) [%s]",
user->nick.c_str(), user->ident.c_str(), user->host.c_str(), user->GetIPString(), oper_reason.c_str());
}
}
else
{
if ((!ServerInstance->SilentULine(user->server)) && (!user->quietquit))
{
ServerInstance->SNO->WriteToSnoMask('Q',"Client exiting on server %s: %s!%s@%s [%s] (%s)",
user->server.c_str(), user->nick.c_str(), user->ident.c_str(), user->host.c_str(), oper_reason.c_str(), user->GetIPString());
ServerInstance->SNO->WriteToSnoMask('Q',"Client exiting on server %s: %s!%s@%s (%s) [%s]",
user->server.c_str(), user->nick.c_str(), user->ident.c_str(), user->host.c_str(), user->GetIPString(), oper_reason.c_str());
}
}

Expand Down

0 comments on commit 3b8085a

Please sign in to comment.