1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 03:06:37 +02:00

Fixed the capab parser to parse capab tokens prefixed with :. Fixes not detecting quitstorm support on ratbox

This commit is contained in:
Adam
2011-10-24 13:19:51 -04:00
parent d0513d6506
commit ccf29c0134
+11 -7
View File
@@ -515,15 +515,19 @@ bool IRCdMessage::OnCapab(const Anope::string &, const std::vector<Anope::string
{
for (unsigned i = 0; i < params.size(); ++i)
{
for (unsigned j = 0; !Capab_Info[j].Token.empty(); ++j)
{
if (Capab_Info[j].Token.equals_ci(params[i]))
spacesepstream sep(params[i]);
Anope::string token;
while (sep.GetToken(token))
for (unsigned j = 0; !Capab_Info[j].Token.empty(); ++j)
{
Capab.SetFlag(Capab_Info[j].Flag);
Log(LOG_DEBUG) << "Capab: Enabling " << Capab_Info[j].Token;
break;
if (Capab_Info[j].Token.equals_ci(token))
{
Capab.SetFlag(Capab_Info[j].Flag);
Log(LOG_DEBUG) << "Capab: Enabling " << Capab_Info[j].Token;
break;
}
}
}
}
return true;