diff options
| author | 2007-10-21 19:43:31 +0000 | |
|---|---|---|
| committer | 2007-10-21 19:43:31 +0000 | |
| commit | e014a02798daff7b9eb74d8011bc1e448e1fa7f5 (patch) | |
| tree | f9ef44171656784eb6d024fc598837f7361ee07a /src/users.cpp | |
| parent | Minor tweak to avoid a storm of redundant read events. This isnt the fix, i d... (diff) | |
Fix blank quits on failure to insert fd to not be blank
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8277 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index dad47ac1c..67da9c541 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -832,7 +832,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->Write("ERROR :Closing link (%s@%s) [%s]", user->ident, user->host, *operreason ? operreason : quitreason.c_str()); user->muted = true; Instance->GlobalCulls.AddItem(user, quitreason.c_str(), operreason); } |
