mIRC Home    About    Download    Register    News    Help

Print Thread
#193641 22/01/08 10:30 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
//echo -a $nick(#, 848)

where 848 is the user nickname - this causes problems, how do i correct this?

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
You could avoid servers running ircds that break the IRC protocol in this horrible way (allowing a nick to be all digits) smile

Or you could use:
$fline(#,$+(/^[,$prefix,]?,848,$!/i),1,3)


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
thanks for the reply qwerty, so theres no real solution for this?

also, what does that code actually do?

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
If you mean a way of using $nick(), no, $fline() is about the best you can do (you could loop through $nick(#,N) and check each nick against 848 but you don't want that).

$fline()'s last parameter is 3, which means search the side-listbox of the specified window (in this case the channel's nicklist) for an item matching the regular expression ^<prefix>?nick$, where <prefix> is the value of $prefix, eg "@+" or "@%+". So the above $fline() looks for the first occurrence of "848" or "@848" or "+848" etc in the nicklist.

See /help $fline for more.

Last edited by qwerty; 23/01/08 12:22 AM.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard