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:
+10
-2
@@ -29,8 +29,16 @@ bool CoreIRCDMessageAway::Run(MessageSource &source, const std::vector<Anope::st
|
||||
|
||||
bool CoreIRCDMessageCapab::Run(MessageSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user