mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2016
Posts: 8
D
DML1783 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Mar 2016
Posts: 8
Okay im trying to do a simple thing yet its not working

I want to be able to do a command
!stats - and have it echo the information from the status window to the active window...

on *:TEXT:!stats*:#: {
echo -a lusers
}
but that just prints the word lusers...

Anyone help on this?

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
You would need to trap the RAW events returning lusers info:

Code:
raw *:*:{
  if ($istok(250 251 252 253 254 255 265 266,$numeric,32)) { echo -a 0,4 $iif($istok(265 266,$numeric,32) , $4- , $2- ) | return }
  echo 5 -a should not see this: raw $numeric : (1) $1 (2) $2 (3) $3 (4) $4 (5) $5 (6-) $6-
}


The 2nd line should be ;commented or removed once you have it working correctly, because otherwise it echoes other things at other times too. It's possible your server can return additional $numeric info that I'm not seeing, so you would then need to add those to the list of handled numerics.

The ON TEXT event only sees when someone else chats in a channel or query window.

Also, reminder that -a is the active window which might not be a #channel.


Link Copied to Clipboard