diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-07 21:03:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-07 21:03:57 +0000 |
commit | 545736adb5c4b8a3b1dc416f4e05ffb256b019cf (patch) | |
tree | 3868768256188c5413c38bd9788db8a10955b4f9 /src/cull_list.cpp | |
parent | 3f95fe8a05d34d5ac1614a26472e3afc7033dd16 (diff) |
Fix multi-level if() madness, thanks HiroP
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6909 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cull_list.cpp')
-rw-r--r-- | src/cull_list.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/cull_list.cpp b/src/cull_list.cpp index ac842e248..ee257350e 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -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(); } |