mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Fix real name formatting bleeding into IRC messages.
This commit is contained in:
parent
3bb01023e8
commit
8addeb78b7
@ -276,7 +276,7 @@ class CommandCheck : public Command
|
||||
* Unlike Asuka, I define a clone as coming from the same host. --w00t
|
||||
*/
|
||||
const UserManager::CloneCounts& clonecount = ServerInstance->Users->GetCloneCounts(i->first);
|
||||
context.Write("member", InspIRCd::Format("%u %s%s (%s)", clonecount.global,
|
||||
context.Write("member", InspIRCd::Format("%u %s%s (%s\x0F)", clonecount.global,
|
||||
i->second->GetAllPrefixChars().c_str(), i->first->GetFullHost().c_str(),
|
||||
i->first->GetRealName().c_str()));
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ class CommandChgname : public Command
|
||||
if (IS_LOCAL(dest))
|
||||
{
|
||||
dest->ChangeRealName(parameters[1]);
|
||||
ServerInstance->SNO->WriteGlobalSno('a', "%s used CHGNAME to change %s's real name to '%s'", user->nick.c_str(), dest->nick.c_str(), dest->GetRealName().c_str());
|
||||
ServerInstance->SNO->WriteGlobalSno('a', "%s used CHGNAME to change %s's real name to '%s\x0F'", user->nick.c_str(), dest->nick.c_str(), dest->GetRealName().c_str());
|
||||
}
|
||||
|
||||
return CMD_SUCCESS;
|
||||
|
@ -130,7 +130,7 @@ CmdResult CommandUID::HandleServer(TreeServer* remoteserver, CommandBase::Params
|
||||
dosend = false;
|
||||
|
||||
if (dosend)
|
||||
ServerInstance->SNO->WriteToSnoMask('C',"Client connecting at %s: %s (%s) [%s]", remoteserver->GetName().c_str(), _new->GetFullRealHost().c_str(), _new->GetIPString().c_str(), _new->GetRealName().c_str());
|
||||
ServerInstance->SNO->WriteToSnoMask('C',"Client connecting at %s: %s (%s) [%s\x0F]", remoteserver->GetName().c_str(), _new->GetFullRealHost().c_str(), _new->GetIPString().c_str(), _new->GetRealName().c_str());
|
||||
|
||||
FOREACH_MOD(OnPostConnect, (_new));
|
||||
|
||||
|
@ -611,7 +611,7 @@ void LocalUser::FullConnect()
|
||||
|
||||
FOREACH_MOD(OnPostConnect, (this));
|
||||
|
||||
ServerInstance->SNO->WriteToSnoMask('c',"Client connecting on port %d (class %s): %s (%s) [%s]",
|
||||
ServerInstance->SNO->WriteToSnoMask('c',"Client connecting on port %d (class %s): %s (%s) [%s\x0F]",
|
||||
this->server_sa.port(), this->MyClass->name.c_str(), GetFullRealHost().c_str(), this->GetIPString().c_str(), this->GetRealName().c_str());
|
||||
ServerInstance->Logs->Log("BANCACHE", LOG_DEBUG, "BanCache: Adding NEGATIVE hit for " + this->GetIPString());
|
||||
ServerInstance->BanCache.AddHit(this->GetIPString(), "", "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user