From 55107487aa7f4fae3552371d80c8bfe1584db0a3 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Mar 2007 23:04:20 +0000 Subject: Fixes for snotice quit reasons git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6633 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cull_list.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/cull_list.cpp b/src/cull_list.cpp index c1a9de1a0..ce5827337 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -101,7 +101,7 @@ int CullList::Apply() if (IS_LOCAL(a->GetUser())) { - a->GetUser()->Write("ERROR :Closing link (%s@%s) [%s]",a->GetUser()->ident,a->GetUser()->host,reason.c_str()); + a->GetUser()->Write("ERROR :Closing link (%s@%s) [%s]", a->GetUser()->ident, a->GetUser()->host, oper_reason.c_str()); if ((!a->GetUser()->sendq.empty()) && (!(*a->GetUser()->GetWriteError()))) a->GetUser()->FlushWriteBuf(); } @@ -110,7 +110,7 @@ int CullList::Apply() { a->GetUser()->PurgeEmptyChannels(); a->GetUser()->WriteCommonQuit(reason, oper_reason); - FOREACH_MOD_I(ServerInstance,I_OnUserQuit,OnUserQuit(a->GetUser(),reason)); + FOREACH_MOD_I(ServerInstance,I_OnUserQuit,OnUserQuit(a->GetUser(), reason)); } FOREACH_MOD_I(ServerInstance,I_OnUserDisconnect,OnUserDisconnect(a->GetUser())); @@ -140,9 +140,9 @@ int CullList::Apply() if (a->GetUser()->registered == REG_ALL) { if (IS_LOCAL(a->GetUser())) - ServerInstance->SNO->WriteToSnoMask('q',"Client exiting: %s!%s@%s [%s]",a->GetUser()->nick,a->GetUser()->ident,a->GetUser()->host,reason.c_str()); + ServerInstance->SNO->WriteToSnoMask('q',"Client exiting: %s!%s@%s [%s]",a->GetUser()->nick,a->GetUser()->ident,a->GetUser()->host,oper_reason.c_str()); else - 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,reason.c_str()); + 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(); } @@ -163,3 +163,4 @@ int CullList::Apply() } return n; } + -- cgit v1.2.3