From 46048c59dcb357a910fd9beb11b25d026e83d247 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 12 Feb 2008 10:43:47 +0000 Subject: Backport r8910: oper quit message would be blank git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8911 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3