Added client id to MultiTargetFilter forward.
This commit is contained in:
parent
7b476e4532
commit
6fae1811d9
@ -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;
|
||||
|
@ -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().
|
||||
|
Loading…
Reference in New Issue
Block a user