Setup:
Save both sets of emotes to a single file, each emote being on its own line
Format each line so its wrapped in *'s (*emote*)
Load the file into a hashtable: /hload -n table emotes.txt

Then use $hfind() to check for emote abuse:
Code:
ON @*:TEXT:*:#: {
  if ($nick !isop # && $hfind(table, $1-, 0, W) > 5) {
    msg # Stop spamming emotes, $nick $+ !
    msg # .timeout $nick 120
  }
}


After the inital setup/parsing of the emotes file this should be far faster than using $read() and able to handle huge lists that would surpass mIRC's line length limit


Last edited by FroggieDaFrog; 24/05/15 06:01 PM.

I am SReject
My Stuff