mIRC Home    About    Download    Register    News    Help

Print Thread
Kick/Ban Hostmask #135987 20/11/05 05:11 PM
Joined: Jul 2005
Posts: 11
A
Akatsuki Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Jul 2005
Posts: 11
I was wondering if you can kick/ban someone, not their nick, but their hostmask. I have a bot that can kick/ban but it usually kick/ban in this form:

* nick1 sets mode: +b nick2!*nick@hostmask.net
* nick2 were kicked by nick1 (blah)

And the person who usually gets kick/ban can just change their nick and come back. So is there a way to have the bot kick/ban:

* nick1 sets mode: +b *!*@hostmask.net
* nick2 were kicked by nick1 (blah)

I looked at the FAQ but I can't find anything on this. I hope somebody can help me. Thank you.

Re: Kick/Ban Hostmask #135988 20/11/05 05:33 PM
Joined: Dec 2004
Posts: 81
N
nycdiesel Offline
Babel fish
Offline
Babel fish
N
Joined: Dec 2004
Posts: 81
You can ban by hostmask but not kick by hostmask. An alternative would be:

Code:
/ban -k #channel <nick> 3 <kick message>


Which bans the host in this format:
*!*USER@*.HOST (*!*php1@*.owngsm01.md.comcast.net)

Last edited by nycdiesel; 20/11/05 05:34 PM.
Re: Kick/Ban Hostmask #135989 20/11/05 05:41 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
check how its setting the ban,
/help $address
/help $mask

$mask(address,type)
Returns address with a mask specified by type.

$mask(nick!khaled@mirc.com,1) returns *!*khaled@mirc.com

$mask(nick!khaled@mirc.com,2) returns *!*@mirc.com

The available types are:

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

Re: Kick/Ban Hostmask #135990 22/11/05 02:07 PM
Joined: Oct 2005
Posts: 51
S
stickydank Offline
Babel fish
Offline
Babel fish
S
Joined: Oct 2005
Posts: 51
well this is how i did my code in my protection its
trip ban

Code:
 
  mode $chan -qaohv+bbb %nickk %nickk %nickk %nickk $address(%nickk,1) $address(%nickk,9) %nickk | kick $chan %nickk 
the %nickk is a var if u didnt no
so if u not useing Var use $nick