aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_cap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_cap.cpp')
-rw-r--r--src/modules/m_cap.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp
index 745c5f847..c23f98ad5 100644
--- a/src/modules/m_cap.cpp
+++ b/src/modules/m_cap.cpp
@@ -337,8 +337,7 @@ void Cap::ExtItem::FromInternal(Extensible* container, const std::string& value)
return; // Can't happen
// Process the cap protocol version which is a single character at the end of the serialized string
- const char verchar = *value.rbegin();
- if (verchar == '2')
+ if (value.back() == '2')
managerimpl->Set302Protocol(user);
// Remove the version indicator from the string passed to HandleReq