diff options
author | Adam <Adam@anope.org> | 2011-09-03 14:10:48 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-09-03 14:10:48 -0400 |
commit | fe1c5d41f9699dce5f1c94ff3b1c2e92bf564f72 (patch) | |
tree | d0398d09e31cd408c85bc6fdfc3d56d84d06069c | |
parent | 073db54354c8b16e099f9e6ee54d388aabb8fc8d (diff) |
Bug #1328 - Fixed fantasy to re-split message parameters correctly
-rw-r--r-- | modules/pseudoclients/bs_main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/pseudoclients/bs_main.cpp b/modules/pseudoclients/bs_main.cpp index 488c30de6..c64cb5786 100644 --- a/modules/pseudoclients/bs_main.cpp +++ b/modules/pseudoclients/bs_main.cpp @@ -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(); } |