mIRC Homepage
For some reason, my switchbar in mIRC will no longer highlight based on events/messages/highlights. Below is my on TEXT event. I'd greatly appreciate any help I can get in this. Also note, most of this code is salvaged from the old Polaris plugin, which used basically the exact same code (including the haltdef), and my switchbar worked in that.

Code:
on ^*:text:*:#:{
  var %nkstl = $nicklevel($nick, $chan)
  if ($istok($replace($rpunct($1-),$rpunct($me),$me),$me,32) == $true) {
    if ($active != $chan) {
      echo -a  $+ $color(highlight) $+ $timestamp 14 $+ $chr(91) $+ 4 $+ $iif(%nkstl == $null, $+ $chr(32) ,%nkstl) $+  $+ $nickstyle($nick)  $+ $color(highlight) $+ $server $+ : $+ $chan $+ 14 $+ $chr(93) $+  $+ $color(highlight) $1-
      echo $chan  $+ $color(highlight) $+ $timestamp 14 $+ $chr(91) $+ 4 $+ $iif(%nkstl == $null, $+ $chr(32) ,%nkstl) $+  $+ $nickstyle($nick) $+ 14 $+ $chr(93) $+  $+ $color(highlight) $1-
    }
    else if ($active == $chan) {
      echo -a  $+ $color(highlight) $+ $timestamp 14 $+ $chr(91) $+ 4 $+ $iif(%nkstl == $null, $+ $chr(32) ,%nkstl) $+  $+ $nickstyle($nick) $+ 14 $+ $chr(93) $+  $+ $color(highlight) $1-
    }
    beep 1
    ;unset %nkstl
    ;haltdef
  }
  else if (($me ison $chan) && ($1- != $null)) {
    echo $chan $timestamp 14 $+ $chr(91) $+ 4 $+ $iif(%nkstl == $null, $+ $chr(32) ,%nkstl) $+  $+ $nickstyle($nick) $+ 14 $+ $chr(93) $+  $1-
  }
  unset %nkstl
  haltdef
}
firstly check out the -c switch with echo to get rid of those $color identifiers
also check the /window -g switch for highlighting purposes
/help /echo
/help @windows
i wont do it becase u haltdef at the ned so the original function is nolonger called
Quote:
firstly check out the -c switch with echo to get rid of those $color identifiers
also check the /window -g switch for highlighting purposes
/help /echo
/help @windows


Thanks, actually, that helped a LOT.
© mIRC Discussion Forums