mirror of
https://github.com/anope/anope.git
synced 2026-07-02 21:43:13 +02:00
Allow OnPreHelp to stop processing
This commit is contained in:
@@ -169,10 +169,10 @@ class BotServCore : public Module
|
||||
}
|
||||
}
|
||||
|
||||
void OnPreHelp(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
EventReturn OnPreHelp(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
if (!params.empty() || source.owner->nick != Config->BotServ)
|
||||
return;
|
||||
return EVENT_CONTINUE;
|
||||
source.Reply(_("\002%s\002 allows you to have a bot on your own channel.\n"
|
||||
"It has been created for users that can't host or\n"
|
||||
"configure a bot, or for use on networks that don't\n"
|
||||
@@ -182,6 +182,7 @@ class BotServCore : public Module
|
||||
"\002%s%s %s \037command\037\002.\n "),
|
||||
Config->BotServ.c_str(), Config->UseStrictPrivMsgString.c_str(), Config->BotServ.c_str(),
|
||||
Config->UseStrictPrivMsgString.c_str(), Config->BotServ.c_str(), source.command.c_str());
|
||||
return EVENT_CONTINUE;
|
||||
}
|
||||
|
||||
void OnPostHelp(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
|
||||
Reference in New Issue
Block a user