Im writing this scrip to mirror one channel to another but im having one problem heres the code first
Code:
 
on *:TEXT:*:#scripts:{
  if ($cid == 1) {
    //scid 2
    if ($left($ialchan($nick,$chan,1).pnick,1) == ~) || ($left($ialchan($nick,$chan,1).pnick,1) == &) || ($left($ialchan($nick,$chan,1).pnick,1) == @) || ($left($ialchan($nick,$chan,1).pnick,1) == %) || ($left($ialchan($nick,$chan,1).pnick,1) == +) {
      var %mirror.msg $replace($1-,$chr(191),$chr(63))
      msg %mirror.chan MirrorScript¿ $+ $chan $+ ¿ $+ $left($ialchan($nick,$chan,1).pnick,1) $+ $nick $+ ¿ $+ %mirror.msg
    }
    else {
      var %mirror.msg $replace($1-,$chr(191),$chr(63))
      msg %mirror.chan MirrorScript¿ $+ $chan $+ ¿ $+ $nick $+ ¿ $+ %mirror.msg
    }
  }
}
 

for some reason the if never happens it goes to the else everytime