diff options
author | Adam <Adam@anope.org> | 2011-02-25 21:41:08 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-02-25 21:41:08 -0500 |
commit | c38b6392c5956628f51faaa6085367dd32199e61 (patch) | |
tree | 8933d0997016756b15e10a7ad88a5d51c04d841e /src/commands.cpp | |
parent | ee387569821b45581063f6bc349cccc643f9a293 (diff) |
More fixes. Also made db_mysql_live not keep bots updated because thats pointless and made m_asynch_commands respect user language settings.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index b2e3b7192..c9f66b25a 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -26,7 +26,7 @@ Command *FindCommand(BotInfo *bi, const Anope::string &name) return NULL; } -void mod_run_cmd(BotInfo *bi, User *u, const Anope::string &fullmessage, ChannelInfo *ci) +void mod_run_cmd(BotInfo *bi, User *u, ChannelInfo *ci, const Anope::string &fullmessage) { if (!bi || !u) return; @@ -45,10 +45,10 @@ void mod_run_cmd(BotInfo *bi, User *u, const Anope::string &fullmessage, Channel Command *c = FindCommand(bi, command); - mod_run_cmd(bi, u, c, command, message, ci); + mod_run_cmd(bi, u, ci, c, command, message); } -void mod_run_cmd(BotInfo *bi, User *u, Command *c, const Anope::string &command, const Anope::string &message, ChannelInfo *ci) +void mod_run_cmd(BotInfo *bi, User *u, ChannelInfo *ci, Command *c, const Anope::string &command, const Anope::string &message) { if (!bi || !u) return; @@ -166,12 +166,13 @@ void mod_run_cmd(BotInfo *bi, User *u, Command *c, const Anope::string &command, } CommandReturn ret = c->Execute(source, params); - if (ret == MOD_STOP) - return; - - FOREACH_MOD(I_OnPostCommand, OnPostCommand(source, c, params)); + if (ret != MOD_STOP) + { + FOREACH_MOD(I_OnPostCommand, OnPostCommand(source, c, params)); + source.DoReply(); + } - source.DoReply(); + PopLanguage(); } /** |