mIRC Homepage
Posted By: verdugo2000 stats for ops - 13/01/03 05:26 AM
in popup list ,menu bar i use :

OPS,VOICE,USERS: /echo $active Total de usuarios $nick($chan,0,a) con voice = $nick($chan,0,v) Operadores en $chan = $nick($chan,0,o)

but i want loaded ,on 1:start:#: {.titlebar echo OPS,VOICE,USERS: /echo $active Total de usuarios $nick($chan,0,a) con voice = $nick($chan,0,v) Operadores en $chan = $nick($chan,0,o) } its ok?

Posted By: Dana Re: stats for ops - 13/01/03 05:29 AM
What are you trying to accomplish? So that the popup will only be there when you're connected to a server? Or are you trying to put the information on a channel (such as user count, etc.) into the titlebar when you first join a channel?
Posted By: Hammer Re: stats for ops - 13/01/03 09:26 AM
As Dana said, on START is not right. That event takes place when mIRC starts. At that point, you are not connected to any server, and therefore you cannot possibly be in any channel(s). $nick($chan,0) has no meaning if $chan is not defined.

Also, if you join multiple channels, which one of them should be in your mIRC titlebar? The active channel? If so, then you use on ACTIVE, like this:
Code:

on *:ACTIVE:{
  if (#* iswm $active) {
    titlebar En el canal $chan $+ , hay $&
      $nick($chan,0,a) usuarios totales, $&
      $nick($chan,0,r) usuarios regulares, $&
      $nick($chan,0,v) usuarios con Voz y $&
      $chan($nick,0,o) Operadores del canal.
  }
  else titlebar
}

En su titlebar, Ud. vería (por ejemplo): En el canal #mIRC, hay 26 usuarios totales, 5 usuarios regulares, 17 usuarios con Voz, y 4 Operadores del canal. ¿Es este cuál Ud. es el intentar hacer?
© mIRC Discussion Forums