1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 21:46:37 +02:00

Fix fantasy !help & give it its own help header, not ChanServ's

This commit is contained in:
Adam
2012-10-08 20:58:47 -04:00
parent e57b470e83
commit 3af786d4c9
49 changed files with 198 additions and 189 deletions
+2 -5
View File
@@ -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;