diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-12-28 16:50:49 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-12-28 16:50:49 +0100 |
commit | 03561f500eb8e82b2ddfa0489fb4ae03c2c9631b (patch) | |
tree | 171ce8955af849e88b7de4cec1fe7b2ec3a8bfba | |
parent | ac861f854ccee2515c191068cc2274e5d1a92fa8 (diff) |
m_cap Fix incorrect syntax of empty CAP LIST reply
Fixes issue #1120 reported by @ProgVal
-rw-r--r-- | src/modules/m_cap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 3e9c37a34..f74f27f16 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -341,7 +341,7 @@ class CommandCap : public SplitCommand static void DisplayResult(LocalUser* user, std::string& result) { - if (result.size() > 5) + if (*result.rbegin() == ' ') result.erase(result.end()-1); user->WriteCommand("CAP", result); } |