summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cull_list.cpp11
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();
}