1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 10:26:37 +02:00

Bug #1328 - Fixed fantasy to re-split message parameters correctly

This commit is contained in:
Adam
2011-09-03 14:10:48 -04:00
parent 073db54354
commit fe1c5d41f9
+7
View File
@@ -102,7 +102,14 @@ class BotServCore : public Module
if (this->fantasy_channel != NULL)
{
if (!command->HasFlag(CFLAG_STRIP_CHANNEL))
{
params.insert(params.begin(), this->fantasy_channel->name);
if (command->MaxParams && params.size() > command->MaxParams)
{
params[params.size() - 2] += " " + params[params.size() - 1];
params.erase(params.end() - 1);
}
}
source.c = this->fantasy_channel;
source.service = this->fantasy_channel->ci->WhoSends();
}