static struct trigger_callback *trigger_callbacks = NULL;
static struct cmd_bot_alias *bot_aliases = NULL;
static struct ClientSocket *tmp_text_client;
+static int total_triggered = 0;
int statistics_commands = 0;
static const struct default_language_entry msgtab[] = {
if(cbind->botid == client->botid && stricmp(cbind->cmd, message) == 0) {
if(statistics_enabled)
statistics_commands++;
+ total_triggered++;
+ cbind->func->triggered++;
if((cbind->func->flags & CMDFLAG_FUNCMD)) {
if(!sent_chan)
break;
cmdfunc->paramcount = paramcount;
cmdfunc->channel_access = channel_access;
cmdfunc->global_access = global_access;
+ cmdfunc->triggered = 0;
cmdfunc->next = cmd_functions;
cmd_functions = cmdfunc;
return 1;