Haveing troble to use the $active command and on *:ACTIVE:*:

when i use this
Code:
on *:ACTIVE:*: {
  echo -a $active en $query($active)
}

its show
Quote:

on status window
Status Window en

on channel
#channel en

on qerty
Babyboy en Babyboy
on qerty 2
Lingotje en Lingotje


thats good thats what i want but wen i do this

Code:
on *:ACTIVE:*: {
  echo -a $active en $query($active)
  if ($active == $chan) {  ; do not show npanel or remove if exist
    hos Undock npanel
    dialog -x npanel npanel
    halt
    } elseif ($active == $query($active)) { ; show npanel
    hos Dock npanel top 0
    hos DockSize npanel 55
    halt
    } elseif ($active == Status Window)  { ; do not show npanel or remove if exist
    hos Undock npanel
    dialog -x npanel npanel
    halt
  } 
}


but the result of that is
on status window its shows npanel and on a qerty but it may only showing on a qerty and not status window
eniway idea?
and even the echo is good but the commands not
greets

Last edited by babyboyke; 04/07/05 06:00 AM.