mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2005
Posts: 14
X
Xiad Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jun 2005
Posts: 14
I wish to kick, then ban anyone who pm's me.. anyone know how to achive this?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
If you want to kick/ban them from a specific channel:

Code:
on *:text:*:?: {
  if ($nick ison #yourchan && $me isop #yourchan) {
    ban -k #yourchan $address($nick,2)
  }
}


Invision Support
#Invision on irc.irchighway.net
Joined: Jun 2005
Posts: 14
X
Xiad Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jun 2005
Posts: 14
It bans, but not kicks.. If you know of how to do that, great.. Other than that, works like a charm smile

Joined: Jun 2005
Posts: 14
X
Xiad Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jun 2005
Posts: 14
Nevermind, I worked it out from what I had lol

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
My fault. -k works only on $nick.

Code:
on *:text:*:?: {
  if ($nick ison #yourchan && $me isop #yourchan) {
    ban #yourchan $address($nick,2)
    kick #yourchan $nick Don't PM me.
  }
}


Invision Support
#Invision on irc.irchighway.net
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Instead of using $address, /ban has an optional masking

Code:
 ban -k #yourchan $nick 2 


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Heh. I forgot about that. I always just ban manually. smile


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard