1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 19:23:12 +02:00

Sometimes capab is sent as one parameter

This commit is contained in:
Adam
2012-11-06 10:42:29 -05:00
parent 4cfd468863
commit 72eb2ccf50
+10 -2
View File
@@ -29,8 +29,16 @@ bool CoreIRCDMessageAway::Run(MessageSource &source, const std::vector<Anope::st
bool CoreIRCDMessageCapab::Run(MessageSource &source, const std::vector<Anope::string> &params)
{
for (unsigned i = 0; i < params.size(); ++i)
Capab.insert(params[i]);
if (params.size() == 1)
{
spacesepstream sep(params[0]);
Anope::string token;
while (sep.GetToken(token))
Capab.insert(token);
}
else
for (unsigned i = 0; i < params.size(); ++i)
Capab.insert(params[i]);
return true;
}