Added client id to MultiTargetFilter forward.

This commit is contained in:
BotoX 2017-01-24 00:14:35 +01:00 committed by BotoX
parent d93f6984cc
commit b68e032cc2
2 changed files with 4 additions and 0 deletions

View File

@ -141,6 +141,7 @@ public: //ICommandTargetProcessor
smtf->fun->PushString(info->pattern); smtf->fun->PushString(info->pattern);
smtf->fun->PushCell(ahc.getClone()); smtf->fun->PushCell(ahc.getClone());
smtf->fun->PushCell(info->admin);
cell_t result = 0; cell_t result = 0;
if (smtf->fun->Execute(&result) != SP_ERROR_NONE || !result) if (smtf->fun->Execute(&result) != SP_ERROR_NONE || !result)
return false; return false;

View File

@ -137,11 +137,14 @@ stock void ReplyToTargetError(int client, int reason)
* *
* @param pattern Pattern name. * @param pattern Pattern name.
* @param clients Array to fill with unique, valid client indexes. * @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. * @return True if pattern was recognized, false otherwise.
*/ */
typeset MultiTargetFilter { typeset MultiTargetFilter {
function bool (const char[] pattern, Handle clients); function bool (const char[] pattern, Handle clients);
function bool (const char[] pattern, ArrayList clients); function bool (const char[] pattern, ArrayList clients);
function bool (const char[] pattern, Handle clients, int client);
function bool (const char[] pattern, ArrayList clients, int client);
} }
/** /**