From 8343f1286b7d45e931c78028a4e4be93a03c3e91 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 13 Oct 2007 23:52:02 +0000 Subject: Move some stuff around, this will move a crash to a different place and maybe we'll catch it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8171 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cull_list.cpp | 1 - src/users.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cull_list.cpp b/src/cull_list.cpp index a1e4aa998..0da622cb1 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -126,7 +126,6 @@ int CullList::Apply() if (IS_LOCAL(a->GetUser())) { - 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(); } diff --git a/src/users.cpp b/src/users.cpp index 8ab475bd9..79877d9c8 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -849,6 +849,7 @@ void userrec::UnOper() void userrec::QuitUser(InspIRCd* Instance, userrec *user, const std::string &quitreason, const char* operreason) { + user->Write("ERROR :Closing link (%s@%s) [%s]", user->ident, user->host, operreason); user->muted = true; Instance->GlobalCulls.AddItem(user, quitreason.c_str(), operreason); } -- cgit v1.2.3