From b68e032cc2fdf046e805e4f3cbccd1cb6f0e9193 Mon Sep 17 00:00:00 2001 From: BotoX Date: Tue, 24 Jan 2017 00:14:35 +0100 Subject: [PATCH] Added client id to MultiTargetFilter forward. --- core/logic/smn_players.cpp | 1 + plugins/include/commandfilters.inc | 3 +++ 2 files changed, 4 insertions(+) diff --git a/core/logic/smn_players.cpp b/core/logic/smn_players.cpp index 17e2262f..ad098fd3 100644 --- a/core/logic/smn_players.cpp +++ b/core/logic/smn_players.cpp @@ -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; diff --git a/plugins/include/commandfilters.inc b/plugins/include/commandfilters.inc index 4b324a33..add6a446 100644 --- a/plugins/include/commandfilters.inc +++ b/plugins/include/commandfilters.inc @@ -137,11 +137,14 @@ 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. */ typeset MultiTargetFilter { function bool (const char[] pattern, Handle 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); } /**