diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-12 10:43:47 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-12 10:43:47 +0000 |
commit | 46048c59dcb357a910fd9beb11b25d026e83d247 (patch) | |
tree | bd472ed084987485abee1ff0511db0b99b1e9ba8 | |
parent | c81bcf3333bcafd9842c8d6cfb8fa3c6f7fb91a6 (diff) |
Backport r8910: oper quit message would be blank
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8911 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/users.cpp | 7 |
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); } |