summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 19e4925b6..e81a3e253 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -721,7 +721,12 @@ void User::QuitUser(InspIRCd* Instance, User *user, const std::string &quitreaso
user->Write("ERROR :Closing link (%s@%s) [%s]", user->ident, user->host, *operreason ? operreason : quitreason.c_str());
user->quietquit = false;
user->quitmsg = quitreason;
- user->operquitmsg = operreason;
+
+ if (!*operreason)
+ user->operquitmsg = quitreason;
+ else
+ user->operquitmsg = operreason;
+
Instance->GlobalCulls.AddItem(user);
}