summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}