From b38f0cc02e8c91385972acff7f8f30613af47ed3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 21 Sep 2007 14:56:18 +0000 Subject: [PATCH] whoops, i forgot to update the banning API... this is the correct revision --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401456 --- plugins/include/banning.inc | 41 +++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/plugins/include/banning.inc b/plugins/include/banning.inc index 724893ba..1b350482 100644 --- a/plugins/include/banning.inc +++ b/plugins/include/banning.inc @@ -51,15 +51,16 @@ * @param kick_message Kick message passed via BanClient(). * @param command Command string to identify the ban source. * @param source Source value passed via BanClient(). - * @noreturn + * @return Plugin_Handled to block the actual server banning. + * Kicking will still occur. */ -forward OnBanClient(client, - time, - flags, - const String:reason[], - const String:kick_message[], - const String:command[], - any:source); +forward Action:OnBanClient(client, + time, + flags, + const String:reason[], + const String:kick_message[], + const String:command[], + any:source); /** * Called for calls to BanIdentity() with a non-empty command. @@ -70,14 +71,14 @@ forward OnBanClient(client, * @param reason Reason passed via BanIdentity(). * @param command Command string to identify the ban source. * @param source Source value passed via BanIdentity(). - * @noreturn + * @return Plugin_Handled to block the actual server banning. */ -forward OnBanIdentity(const String:identity[], - time, - flags, - const String:reason[], - const String:command[], - any:source); +forward Action:OnBanIdentity(const String:identity[], + time, + flags, + const String:reason[], + const String:command[], + any:source); /** * Called for calls to RemoveBan() with a non-empty command. @@ -86,12 +87,12 @@ forward OnBanIdentity(const String:identity[], * @param flags Ban flags (only IP or AUTHID are valid here). * @param command Command string to identify the ban source. * @param source Source value passed via BanIdentity(). - * @noreturn + * @return Plugin_Handled to block the actual server banning. */ -forward OnRemoveBan(const String:identity[], - flags, - const String:command[], - any:source); +forward Action:OnRemoveBan(const String:identity[], + flags, + const String:command[], + any:source); /** * Bans a client.