diff options
| author | 2022-10-01 22:02:45 +0100 | |
|---|---|---|
| committer | 2022-10-01 22:15:23 +0100 | |
| commit | c7f6ffccbdefba86afbe20b7f4d668fff2aaecd4 (patch) | |
| tree | 087572776e63e04c8f7871eba5282ab95aed180d /src/modules/m_cap.cpp | |
| parent | Release v4.0.0 alpha 15. (diff) | |
Replace *foo.rbegin() with foo.end().
Diffstat (limited to 'src/modules/m_cap.cpp')
| -rw-r--r-- | src/modules/m_cap.cpp | 3 |
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 |
