1.1 --- a/plugins/include/usermessages.inc Sun Mar 01 16:35:01 2009 -0500
1.2 +++ b/plugins/include/usermessages.inc Sun Mar 01 16:39:25 2009 -0500
1.3 @@ -127,11 +127,12 @@
1.4 functag public Action:MsgHook(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init);
1.5
1.6 /**
1.7 - * Called when a message is finished sending.
1.8 + * Called when a message hook has completed.
1.9 *
1.10 * @param msg_id Message index.
1.11 + * @param sent True if message was sent, false if blocked.
1.12 */
1.13 -functag public MsgSentNotify(UserMsg:msg_id);
1.14 +functag public MsgPostHook(UserMsg:msg_id, bool:sent);
1.15
1.16 /**
1.17 * Hooks a user message.
1.18 @@ -145,7 +146,7 @@
1.19 * @noreturn
1.20 * @error Invalid message index.
1.21 */
1.22 -native HookUserMessage(UserMsg:msg_id, MsgHook:hook, bool:intercept=false, MsgSentNotify:notify=MsgSentNotify:-1);
1.23 +native HookUserMessage(UserMsg:msg_id, MsgHook:hook, bool:intercept=false, MsgPostHook:post=MsgPostHook:-1);
1.24
1.25 /**
1.26 * Removes one usermessage hook.