summaryrefslogtreecommitdiff
path: root/src/modules/m_cap.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-28 16:50:49 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-28 16:50:49 +0100
commit03561f500eb8e82b2ddfa0489fb4ae03c2c9631b (patch)
tree171ce8955af849e88b7de4cec1fe7b2ec3a8bfba /src/modules/m_cap.cpp
parentac861f854ccee2515c191068cc2274e5d1a92fa8 (diff)
m_cap Fix incorrect syntax of empty CAP LIST reply
Fixes issue #1120 reported by @ProgVal
Diffstat (limited to 'src/modules/m_cap.cpp')
-rw-r--r--src/modules/m_cap.cpp2
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);
}