diff options
-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); } |