Added client id to MultiTargetFilter forward.
This commit is contained in:
		
							parent
							
								
									d93f6984cc
								
							
						
					
					
						commit
						b68e032cc2
					
				@ -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;
 | 
				
			||||||
 | 
				
			|||||||
@ -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);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user