mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2005
Posts: 3
M
mmkk Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2005
Posts: 3
can anyone help me coding a new address type? the join msg is like this:
Joins: StiLL-LiVing (java@12.125.66.69)
if i want my bot to ban first 3 parts of his ip for example 12.125.66.* on join, what would be the address type for this? how can i create that type of address identifier or what would be the code for that? we have only these types:
0: *!user@host
1: *!*user@host
2: *!*@host
3: *!*user@*.host
4: *!*@*.host
5: nick!user@host
6: nick!*user@host
7: nick!*@host
8: nick!*user@*.host
9: nick!*@*.host

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You need a custom address
Code:
alias caddress {
var %address = $address($1,4)
var %address2 = $gettok(%address,-1,46)
return $reptok(%address,%address2,*,-1,46)
}
 


Usage: $caddress(<nick>)

Joined: Oct 2005
Posts: 51
T
Babel fish
Offline
Babel fish
T
Joined: Oct 2005
Posts: 51
I think what he was getting at was that he needed the first three octets of the ip address. More or less he would need to trigger the event that would initiate the ban and dns the hostname unless its not a hostmask to begin with. Then he would remove the last octet and get just ban the first three with the wildcard.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
could be, but as it's been a week and a half since the post, and there's been nothing from the original poster saying that what I gave doesn't work, or doesn't do what they wanted, I'll worry about it if (& when) they say something.


Link Copied to Clipboard