Ok, I tried both the $eval($1,0) and the $($1,) flavours of that with no success, perhaps I am just being a muppet.

Ok, so the script is going to be a much more powerful highlighter than mIRC's built-in one, with a lot more features and control and the ability to stop a highlight under certain conditions, such as the highlight occurring on a certain channel, or being triggered by a particular nick, or with some string in the line. All with a pretty interface of course. Its almost done, and I am currently attempting to script the ability to add ignore conditions when other ones are triggered, eg if an illegal highlight occurs on a channel then for say 60 seconds that channel and nick will be added to the ignores list.

So after adding the appropirate ignores I start a timer which calls the remove alias with an argument of the highlight text to have the ignores removed from

Code:
      .timer $+ %hlt_name -oic 0 $readini( %hlt_ini, %hlt_name, Delay) hlt_remig %hlt_name


and the alias looks like

Code:
alias hlt_remig {
  if ( $readini( %hlt_ini, $1-, Nicks) == $readini( %hlt_ini, $1-, RemNick) ) remini %hlt_ini $1- Nicks
  else writeini %hlt_ini $1- Nicks $remtok( $readini( %hlt_ini, $1-, Nicks), $readini( %hlt_ini, $1-, RemNick), 1, 44 )
  if ( $readini( %hlt_ini, $1-, Channels) == $readini( %hlt_ini, $1-, RemChan) ) remini %hlt_ini $1- Channels
  else writeini %hlt_ini $1- Channels $remtok( $readini( %hlt_ini, $1-, Channels), $readini( %hlt_ini, $1-, RemChan), 1, 44 )
  remini %hlt_ini $1- RemNick
  remini %hlt_ini $1- RemChan
  timer $+ $1- off
}

basically removes the ignores (they're stored as a tokened list in an ini file) and removes the reminds of which ignores to take out.

This all works like a charm, except for the highlight $me (yes you can add identifiers as highlights) where it falls over. It attempts to fiddle with the settings in the highlight for my nick. Trying the $eval and so on merely causes it to attempt to make changes to a [$1] in the inifile somewhere.

Any ideas?

Last edited by Aenei; 17/12/05 02:19 PM.