summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-13 23:52:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-13 23:52:02 +0000
commit8343f1286b7d45e931c78028a4e4be93a03c3e91 (patch)
tree428e41b3bd34ca0c0358dce48e49f5cb6eab0179 /src
parent178d4697c55c7c4c932d6e1564815f3ab0a1a6d2 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/cull_list.cpp1
-rw-r--r--src/users.cpp1
2 files changed, 1 insertions, 1 deletions
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);
}