Fix a by-one error in the CHANTYPES parsing
This commit is contained in:
@@ -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++]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user