mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 20:19:02 -04:00
Fix multi-level if() madness, thanks HiroP
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6909 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
3f95fe8a05
commit
545736adb5
@ -166,13 +166,18 @@ int CullList::Apply()
|
||||
if (a->GetUser()->registered == REG_ALL)
|
||||
{
|
||||
if (IS_LOCAL(a->GetUser()))
|
||||
{
|
||||
if (!a->IsSilent())
|
||||
{
|
||||
ServerInstance->SNO->WriteToSnoMask('q',"Client exiting: %s!%s@%s [%s]",a->GetUser()->nick,a->GetUser()->ident,a->GetUser()->host,oper_reason.c_str());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!ServerInstance->SilentULine(a->GetUser()->server))
|
||||
if (!a->IsSilent())
|
||||
ServerInstance->SNO->WriteToSnoMask('Q',"Client exiting on server %s: %s!%s@%s [%s]",a->GetUser()->server,a->GetUser()->nick,a->GetUser()->ident,a->GetUser()->host,oper_reason.c_str());
|
||||
if ((!ServerInstance->SilentULine(a->GetUser()->server)) && (!a->IsSilent()))
|
||||
{
|
||||
ServerInstance->SNO->WriteToSnoMask('Q',"Client exiting on server %s: %s!%s@%s [%s]",a->GetUser()->server,a->GetUser()->nick,a->GetUser()->ident,a->GetUser()->host,oper_reason.c_str());
|
||||
}
|
||||
}
|
||||
a->GetUser()->AddToWhoWas();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user