From fe1c5d41f9699dce5f1c94ff3b1c2e92bf564f72 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 3 Sep 2011 14:10:48 -0400 Subject: [PATCH] Bug #1328 - Fixed fantasy to re-split message parameters correctly --- modules/pseudoclients/bs_main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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(); }