mirror of
https://github.com/anope/anope.git
synced 2026-07-10 03:23:13 +02:00
Allow OnPreHelp to stop processing
This commit is contained in:
@@ -79,11 +79,12 @@ class GlobalCore : public Module
|
||||
notice_server(Config->Global, s, "%s", Config->GlobalOnCycleUP.c_str());
|
||||
}
|
||||
|
||||
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->Global)
|
||||
return;
|
||||
return EVENT_CONTINUE;
|
||||
source.Reply(_("%s commands:\n"), Config->Global.c_str());
|
||||
return EVENT_CONTINUE;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user