From 1184eb59c5abbaf8e435448567f2db50353ccff7 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 19 Sep 2011 13:12:52 -0400 Subject: Allow OnPreHelp to stop processing --- include/modules.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 5d2e7247f..d35c1f2ba 100644 --- a/include/modules.h +++ b/include/modules.h @@ -317,8 +317,9 @@ class CoreExport Module : public Extensible /** Called when someone uses the generic/help command * @param source Command source * @param params Params + * @return EVENT_STOP to stop processing */ - virtual void OnPreHelp(CommandSource &source, const std::vector ¶ms) { } + virtual EventReturn OnPreHelp(CommandSource &source, const std::vector ¶ms) { return EVENT_CONTINUE; } /** Called when someone uses the generic/help command * @param source Command source -- cgit