diff options
author | Adam <Adam@anope.org> | 2012-10-08 20:58:47 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-08 20:58:47 -0400 |
commit | 3af786d4c97e8ee99ea122a5c058d82e6222f295 (patch) | |
tree | 750c5de0ec2c001b6366fd5137478e6944cdc296 /src/bots.cpp | |
parent | e57b470e83fac205a354138b1daccec654214e39 (diff) |
Fix fantasy !help & give it its own help header, not ChanServ's
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 38f37c41d..bc7fc3cb0 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -230,10 +230,7 @@ void BotInfo::OnMessage(User *u, const Anope::string &message) if (this->commands.empty()) return; - CommandSource source(u->nick, u, u->Account(), u); - source.owner = this; - source.service = this; - + CommandSource source(u->nick, u, u->Account(), u, this); RunCommand(source, message); } @@ -256,7 +253,7 @@ void BotInfo::SetCommand(const Anope::string &cname, const Anope::string &sname, */ CommandInfo *BotInfo::GetCommand(const Anope::string &cname) { - command_map::iterator it = this->commands.find(cname); + CommandInfo::map::iterator it = this->commands.find(cname); if (it != this->commands.end()) return &it->second; return NULL; |