Added client id to MultiTargetFilter forward.

This commit is contained in:
BotoX
2019-09-21 20:29:27 +02:00
committed by BotoX
parent 7b476e4532
commit 6fae1811d9
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -141,6 +141,7 @@ public: //ICommandTargetProcessor
smtf->fun->PushString(info->pattern);
smtf->fun->PushCell(ahc.getClone());
smtf->fun->PushCell(info->admin);
cell_t result = 0;
if (smtf->fun->Execute(&result) != SP_ERROR_NONE || !result)
return false;
+5 -1
View File
@@ -137,9 +137,13 @@ stock void ReplyToTargetError(int client, int reason)
*
* @param pattern Pattern name.
* @param clients Array to fill with unique, valid client indexes.
* @param client Client that triggered this filter.
* @return True if pattern was recognized, false otherwise.
*/
typedef MultiTargetFilter = function bool (const char[] pattern, Handle clients);
typeset MultiTargetFilter {
function bool (const char[] pattern, Handle clients);
function bool (const char[] pattern, Handle clients, int client);
}
/**
* Adds a multi-target filter function for ProcessTargetString().