mirror of
https://github.com/anope/anope.git
synced 2026-07-02 16:33:12 +02:00
Allow OnPreHelp to stop processing
This commit is contained in:
@@ -73,11 +73,12 @@ class HostServCore : public Module
|
||||
this->OnNickIdentify(u);
|
||||
}
|
||||
|
||||
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->HostServ)
|
||||
return;
|
||||
return EVENT_CONTINUE;
|
||||
source.Reply(_("%s commands:\n"), Config->HostServ.c_str());
|
||||
return EVENT_CONTINUE;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user