mIRC Home    About    Download    Register    News    Help

Print Thread
#196146 10/03/08 08:51 PM
Joined: Jun 2006
Posts: 6
W
wibby50 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Jun 2006
Posts: 6
Ok, what is the code that where i can just say /ban username or !ban username and it will not only ban the username, but the ip of the person using it so nobody else on his ip can get on. Also, is there any additional code needed to that when that ip joins, it will get kicked. I have 2 bots. RebelsBot and Chanserv. I own RebelsBot, and I would like a code for each of them so incase one of them crashes, the other one will take over. The channel is #rebels.u21

Joined: Mar 2008
Posts: 6
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Mar 2008
Posts: 6
/ban {
/mode # -o-v $$1
/mode # +b $$1
/kick # $$1 $2
}


i was h3r3
Joined: Dec 2007
Posts: 48
K
Kol Offline
Ameglian cow
Offline
Ameglian cow
K
Joined: Dec 2007
Posts: 48
Code:
on @*:TEXT:!ban *:#: { if ($nick isop #) { ban -k # $$2 2 $3- } }
alias kb { ban -k # $$1 2 $2- }


!ban NICK REASON
/kb NICK REASON

(/ban is an mIRC command so it's reccomended not to overwrite it)

Last edited by Kol; 16/03/08 02:10 PM.

Link Copied to Clipboard