Fix a by-one error in the CHANTYPES parsing

This commit is contained in:
Florent Le Coz
2014-05-27 02:35:39 +02:00
parent aea923bcb9
commit 34739728f9
+1 -1
View File
@@ -285,7 +285,7 @@ void IrcClient::on_isupport_message(const IrcMessage& message)
// Remove the default types, they apply only if no other value is // Remove the default types, they apply only if no other value is
// specified. // specified.
this->chantypes.clear(); this->chantypes.clear();
size_t i = 11; size_t i = 10;
while (i < token.size()) while (i < token.size())
this->chantypes.insert(token[i++]); this->chantypes.insert(token[i++]);
} }