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); } /**