mIRC Home    About    Download    Register    News    Help

Print Thread
problem in alias #101599 26/10/04 10:42 AM
Joined: Sep 2004
Posts: 7
K
kash1f Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Sep 2004
Posts: 7
I wanted to place multiple bans with 1 alias command.
so I used the code like that:
/allban /ban ip | /ban ip | /ban ip ! and so on and on

It is working too but not perfect! the same alias working fine on other's mirc's.
Problem is when I run this alias it bans ips one by one
For Example: kash1f sets mode : +b ip1
kash1f sets mode : +b ip2
kash1f sets mode : +b ip3

not like : kash1f sets mode +bbb ip1 ip2 ip3

Please help me in this alias.

Thanks.

Re: problem in alias #101600 26/10/04 10:47 AM
Joined: Jun 2003
Posts: 5,024
M
Mentality Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
/alias allban mode # +bbb $address($$1,3) $address($$1,2) $address($$1,4)

Do you mean that? That will ban *!*user@*.domain, *!*@hostname.or.ip and *!*@*.domain.

The '3' '2' '4' etc. are masks, see /help $mask for info.

Regards,


Mentality/Chris
Re: problem in alias #101601 26/10/04 11:03 AM
Joined: Sep 2004
Posts: 7
K
kash1f Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Sep 2004
Posts: 7
I have list of hosts like *!*@*xyz.com , and i putted all in alias!!
, your alias will ask for addresses input , right??


Re: problem in alias #101602 26/10/04 11:20 AM
Joined: Jun 2003
Posts: 5,024
M
Mentality Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Ah, I misunderstood. It will not ask for the address input, if you use /allban nickname then it will ban 3 types of addresses for the nickname you specify.

However, if you have a set list of addresses to ban already, then indeed, you can just use /mode #channel +bbb *!*@*xyz.com *!*@*abc.com *!*@*arnie.com and so forth.

Regards,


Mentality/Chris