Ban Script
+ 0 likes
Please Register to submit score.
| Average Score | 5.8 |
| Scores Submitted | 5 |
| Date Added | Jan 29, 2006 |
| Last Updated | Jan 31, 2006 |
Introduction
You or operators in any channel you are op in can ban certain addresses
Unless the actual ban expires in less than 5 minutes, it unbans the person (like mode -b #channel) in 5 minutes. It stores all the bans in a hash table <p>
When someone joins a channel, it checks then versus the bans on that channel. If a ban matchs, they are kicked, at the actual mask that was banned is banned...
That might not be too clear, Its hard to explain. Examples will help: <p>
Other operators use:
!+ban ADDRESS TIME REASON
!-ban REASON
!baninfo ADDRESS<p>
You use:
/+ban CHANNEL ADDRESS TIME REASON
/-ban CHANNEL ADDRESS
/baninfo ADDRESS <p>
Address is in the form: NICKNAME!NAME@HOST
Time is in seconds
Reason can be anything
Channel must have a # before it <p>
!+ban bear!*@* 60000 Learn some manners
That bans the address "bear!*@*". That means it bans the nickname "bear" on the channel the operator typed it in.
Anyone on that channel matching that address (wildcards such as * and ? are applied) is kick/banned<p>
!+ban *!*@*.IP 0 No IP addresses allowed in here
That would ban anyone with a .IP address. A 0 time ban never expires <p>
/-ban #realmasks *!*@*.IP
That is what you type to unban *!*@*.IP from #realmasks <p>
/+ban #bear ?!*@* 0 Get a longer name please
That is what you type to ban all 1 character nicknames from #bear
It lasts forever (even though it does the actual mode -b in 5 minutes, everytime someone joins or changes their nick to a 1 character it will kick and ban them again)<p>
This script can be useful for longterm bans, or for a network where you can have limited amounts of channel bans.
It can also be used to ban certain nicknames (Like Java???, Guest?????, people from a certain ISP, and one, two etc charater nicknames <p>
The only downside is if you arent on the channel, the banned person/address can get on. <p>
In action:
(bear_test) !+ban bear!*@* 60 Learn some manners
* bearruler sets mode: +b bear!*@*
* bear was kicked by bearruler (Banned by: bear_test because: Learn some manners. Expires in: 1min)<p>
(bear_test) !+ban bear!*@* 600 Learn some manners
* bear2 has joined #bear
* bear2 is now known as bear
* bear was kicked by bearruler (Banned by: bear_test because: Learn some manners. Expires in: 8mins 5secs)<p>
* bear has joined #bear
* bearruler sets mode: +b bear!*@*
* bear was kicked by bearruler (Banned by: bear_test because: Learn some manners. Expires in: 6mins 12secs)<p>
Any questions, comments, concerns, suggestions, etc, email me at bearruler@gmail.com
Bear
mIRC Snippet:
Ban Script
Posted on Jan 29, 2006 1:57 pm
Posted on Jan 29, 2006 1:57 pm
if you want the description to be neater, without having to use " - " you can use <br>
big code for a ban script but it's usefull and does a good job
big code for a ban script but it's usefull and does a good job
mIRC Snippet:
Ban Script
Posted on Jan 29, 2006 2:44 pm
Posted on Jan 29, 2006 2:44 pm
Ah, Thanks
I just assumed HTML tags wouldnt work :P
It code might be large, but there are alot of secruity/other precautions I toom to make it complete
Bear
I just assumed HTML tags wouldnt work :P
It code might be large, but there are alot of secruity/other precautions I toom to make it complete
Bear
mIRC Snippet:
Ban Script
Posted on Jan 29, 2006 6:43 pm
Posted on Jan 29, 2006 6:43 pm
Yea, it would go best on a bot thats up 24/7
It does work with anyone on mIRC though
Bear
It does work with anyone on mIRC though
Bear
mIRC Snippet:
Ban Script
Posted on Jan 29, 2006 6:55 pm
Posted on Jan 29, 2006 6:55 pm
Ok. I was just confused. Looks good.
mIRC Snippet:
Ban Script
Posted on Apr 18, 2006 3:54 am
Posted on Apr 18, 2006 3:54 am
I like the script but i wish i could modify it to ban in all channels im in, also would be nice if remote users could ban with a shorter command with just the nick like: !+b nick reason
I guess that would involve default settings with ban types, and having default time setting as 0=never ending - so unless specified the script will default ban in all channels with type 2 bans never ending.
I hope this makes sense, if anyone can modify the script for me like this let me know. I would liek to use it for a bot in a room with newbie ops and i need it very simple for them to quickly add bans.
I guess that would involve default settings with ban types, and having default time setting as 0=never ending - so unless specified the script will default ban in all channels with type 2 bans never ending.
I hope this makes sense, if anyone can modify the script for me like this let me know. I would liek to use it for a bot in a room with newbie ops and i need it very simple for them to quickly add bans.
mIRC Snippet:
Ban Script
Posted on Dec 8, 2006 11:07 am
Posted on Dec 8, 2006 11:07 am
It is pretty nice. Can get a little bit spammy but its okay.




