diff options
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()) { |