diff options
author | Adam <Adam@anope.org> | 2010-11-27 00:04:13 -0600 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:37:00 -0500 |
commit | 71c433cc502cc6073dd1e9d5cab3f49f8f6fd49e (patch) | |
tree | c9a463b9155471e11a067fd9306bfa152b189b51 /modules/extra/m_alias.cpp | |
parent | 2b10cc84eab6cb9253611a090eb3ef67a6d3d0a7 (diff) |
The rest of the earlier command changes
Diffstat (limited to 'modules/extra/m_alias.cpp')
-rw-r--r-- | modules/extra/m_alias.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/extra/m_alias.cpp b/modules/extra/m_alias.cpp index 4eac38179..de23557a3 100644 --- a/modules/extra/m_alias.cpp +++ b/modules/extra/m_alias.cpp @@ -56,8 +56,9 @@ class ModuleAlias : public Module } } - EventReturn OnPreCommandRun(User *u, BotInfo *bi, Anope::string &command, Anope::string &message, bool fantasy) + EventReturn OnPreCommandRun(User *u, BotInfo *bi, Anope::string &command, Anope::string &message, ChannelInfo *ci) { + bool fantasy = ci != NULL; std::map<Anope::string, CommandAlias, std::less<ci::string> >::const_iterator it = aliases.find(command); if (it != aliases.end()) { |