mIRC Home    About    Download    Register    News    Help

Print Thread
#156224 13/08/06 06:50 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Hi there smile

my blacklist script started acting out, kicking the IP A with the kick message from IP B. I then tried to "manually" return the .info from IPs A and B, and the error repeated itself. A friend of mine also confirmed it. Lemme explain this better..

7:*!*@userid.users.undernet.org Swearing
6:*!*@*.Power.Of.juttgroup.net Flood bots
6:*!*@12.345.* Trouble IP


With this, in mIRC 6.17, if I do an //echo $ulist(*!*@12.345.*,6,1).info I will get this: Trouble IP. However, if I try the exact same command on 6.2, I get this: Flood bots.

Seems like mIRC takes the first level 6 of the list and reads that .info, regardless of the mask I've used in the first parameter of $ulist.

Can anyone confirm that?

Thank you,
Zyzzy.

PS: in mIRC 6.2, if I try //echo $ulist(*!*@12.345.,6,1).info (note that I left out the last *), the .info part returns correctly.

Last edited by Zyzzyx26; 13/08/06 06:56 PM.
#156225 13/08/06 07:35 PM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Confirmed. In a #channelname having 61 nicks, when I cleared all my userlist entries except for the 3 examples, and then I do:

//var %chan #channelname | var %i = $nick(%chan,0) | while (%i) { var %x = $nick(%chan,%i) | echo -s %x $ulist($address(%x,3),6,1).info | dec %i }

... I get 1 nick that didn't return any level, 2 that returned "Flood bots", and all the remaining 58 nicks returned "Trouble IP".

The 1 nick that returned no level had a hostmask short enough that $address($nick,3) returned no wildcards to the right of the "@". The 2 nicks returning "Flood bots" were showing valid IP addresses in /whois, but they definitely didn't match any of these 3 examples.

Edit: FYI, the same sort of thing was happening when I changed the levels from 6 and 7 to test6 and test7 and then searched for test6.

Last edited by maroon; 13/08/06 07:37 PM.
#156226 14/08/06 12:05 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
By reading your post I didn't quite understood what you did, so I thought I should test it myself. I got about half of the nicks as "Trouble IP" and half as "Flood bots". The only one that did not return any .info was X (Undernet network).

confused

PS: Digging a bit deeper I found some weird stuff. That behaviour differs if it's the nick/userid/host part that there is stated. For example, if I am Zyzzyx26!test@123.123.123.123:

6:*!*test*@* Trouble IP
6:*!*@123*. Flood bots
6:*26!@*@* Swearing

Running that line you posted above, I get different results depending on what mask I use in the userlist.

Last edited by Zyzzyx26; 14/08/06 12:35 AM.

"All we are saying is give peace a chance" -- John Lennon
#156227 14/08/06 12:30 AM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
What I did was check $address(each_nick,3) against the user classes. Type 3 address usually looks something like *!*identd_string@*.ispname.com and almost certainly should not match any of the 3 example addresses.

I'll add the address masks being tested:

//var %chan #channelname | var %i = $nick(%chan,0) | while (%i) { var %x = $nick(%chan,%i) | echo -s %x $address(%x,3) $ulist($address(%x,3),6,1).info | dec %i }

I'm guessing that X didn't match any of the 3 examples, because it probably has an address mask that doesn't have an asterisk following the @ - ie *!*user_id@something not *!*user_id@*.something

edit: A workaround to the problem is how you hinted at in your first edit - to not test any addresses containing an asterisk.

Instead of testing //echo $ulist(*!*@12.345.*,userclass,1).info, use the full address,5 format: //echo $ulist(nick!user_id@12.345.678.90)

But still, this is something that will need to be fixed.

Last edited by maroon; 14/08/06 12:45 AM.
#156228 14/08/06 07:31 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Please disregard my posts, I got it =P

*bangs head against the wall*

Last edited by Zyzzyx26; 14/08/06 08:18 PM.

"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard