summaryrefslogtreecommitdiff
path: root/modules/extra/m_alias.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-11-27 00:04:13 -0600
committerAdam <Adam@anope.org>2010-12-12 19:37:00 -0500
commit71c433cc502cc6073dd1e9d5cab3f49f8f6fd49e (patch)
treec9a463b9155471e11a067fd9306bfa152b189b51 /modules/extra/m_alias.cpp
parent2b10cc84eab6cb9253611a090eb3ef67a6d3d0a7 (diff)
The rest of the earlier command changes
Diffstat (limited to 'modules/extra/m_alias.cpp')
-rw-r--r--modules/extra/m_alias.cpp3
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())
{