mIRC Home    About    Download    Register    News    Help

Print Thread
#62725 03/12/03 02:00 PM
Joined: Dec 2003
Posts: 28
L
LEET Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2003
Posts: 28
hi i was scripting again, trying to make an identifier that recognizes whether a channel is xdcc or not. That doesn't matter right now, heres the problem.

i am trying to use $fline() to reutrn the number of VOICED nicknames that are *-* catering for that wildcard. so it'll find names like [XDCC]-bot1 etc. but i want it to return nicks that are +*-* but it doesn't seem to return anything...

heres what i'm using $fline(#,+*-*,0,1), should that return the total number of nicks in the listbox that satisfy the wildcard?? it doesn't seem to work if you add a wildcard for their channel mode.

hope it works shocked


I R WITH STUPID -> LEET
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
Since $line(#,1,1) returns the nick without mode prefix I don't wonder why that doesn't work.

But why would they strip the mode prefixes?


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Dec 2003
Posts: 28
L
LEET Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2003
Posts: 28
no idea, i didn't play around with $line() to find it doesn't actually return the mode prefix anyway but thanks for reinforcing it.

it'd be better if the whole lot got returned instead of me having to script extra stuff. But the reason why it isn't is to make it easier for the scripter that wants to manipulate just the nickname instead of having to remove the mode prefix themselves. but i think they should edit the function so that you can specify whether to return the mode prefix too or not such as a $prop that won't get in the way. $line().mp or something IF the user specifies listbox etc... shocked

Last edited by LEET; 03/12/03 08:50 PM.

I R WITH STUPID -> LEET
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You can still get the mode prefixes with /filter. An example: //filter -wfl #chan nul +*-* | echo -a $filtered

Joined: Dec 2003
Posts: 28
L
LEET Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2003
Posts: 28
cheers for the code, i was just suggesting an alternate way to which you'd expect the mode prefixes to be shown. nice code !!!! shocked


I R WITH STUPID -> LEET
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Yes, I liked it too. I knew that NUL works with /debug, but it was a pleasant surprise to find out that it works as a /filter <outfile> too.


Link Copied to Clipboard