aboutsummaryrefslogtreecommitdiffstats
path: root/include/clientprotocolmsg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clientprotocolmsg.h')
-rw-r--r--include/clientprotocolmsg.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/clientprotocolmsg.h b/include/clientprotocolmsg.h
index 30dca847d..78ebf9bf4 100644
--- a/include/clientprotocolmsg.h
+++ b/include/clientprotocolmsg.h
@@ -266,8 +266,7 @@ class ClientProtocol::Messages::Mode
if (ret.length() + 1 + paramlength > maxlinelen)
{
// Mode sequence is getting too long
- const char c = *ret.rbegin();
- if ((c == '+') || (c == '-'))
+ if ((ret.back() == '+') || (ret.back() == '-'))
ret.erase(ret.size()-1);
break;
}