• Welcome to Valhalla Legends Archive.
 

Creating an IP Ban Function

Started by Soul, April 10, 2003, 09:42 PM

Previous topic - Next topic

Soul

I need some help guys, On Channel IPBanning, I Have Everything But That If anyone could help me, post If not please don't post junk, Thanks

tA-Kane

When you /ignore someone, the server also /ignores anyone else logged in on that address.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

Kp

Are you unsure how to have your bot squelch someone?
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

haZe

Just make it so if they have the squelched flags, then ban him. (when u use .ipban or w/e send /squelch <name> then /ban <name>)

Soul

when a flooder/bot or anything on that ip joins a channel that my bot as operator status in, i would like it to ban. Just Like Shadow/Fear/Fuckin'. If you don't know what i mean, then just don't post

haZe

I just told you, squelch the name and if a name shows up with 0x20 flags, then ban it or w/e!!

Kp

Quote from: ReaPeR on April 11, 2003, 02:58 PM
when a flooder/bot or anything on that ip joins a channel that my bot as operator status in, i would like it to ban. Just Like Shadow/Fear/Fuckin'. If you don't know what i mean, then just don't post

Instead of complaining you got a bad answer and telling us to go run a program, how about you explain specifically the capability that they demonstrate which you wish to duplicate?  Also, I should point out that a properly functioning floodbot is moving too fast to be banned (if it's bannable, then it was not moving fast enough and therefore could not have been functioning properly).
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Eternal

Indeed, if the floodbot is operating properly it isn't easy to ban. You can send the "/ban" command, but by the time you send "/squelch" they have already logged off ;-)
^-----silly Brit
-----------------------------
www.brimd.com

ILurker

Acually, ip banning is one of the easiest codes,
when someone gets banned, automatically ignore them,
   
Private Sub Bot_Info(ByVal message As String)
AddChat vbRed, " ---- " & message
Dim pa222() As String
pa222 = Split(message, " ", 2)
   If InStr(1, message, "was banned by", vbTextCompare) <> 0 Then
         if ipbans = true then
           send "/ignore " & pa222(0)
         end if
   end if
end sub

Then, when someone joins, if the geticoncode returns ICON_SQEULCH, or he has the the squelch flags, ban
him

Kp

Quote from: St0rm.iD on April 11, 2003, 06:35 PM
What, expecting us to write your bot for you?

Or at least be telepathic and know precisely what he wants with only vague references. ;)

Also, Eternal: a floodbot that was truly working at optimum capacity would be offline before you even got the "/ban" to the server, much less the squelch.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Eternal

#10
Quote from: Kp on April 11, 2003, 11:41 PM
Also, Eternal: a floodbot that was truly working at optimum capacity would be offline before you even got the "/ban" to the server, much less the squelch.
Quote

I guess I just haven't seen one operating at optimum capacity...the ones lamers use on my channel are easy to "/ban", but not "/squelch" too   ::)
^-----silly Brit
-----------------------------
www.brimd.com

Yoni

Quote from: Eternal on April 12, 2003, 05:54 AMI guess I just haven't seen one operating at optimum capacity...the ones lamers use on my channel are easy to "/ban", but not "/squelch" too   ::)

Here's a suggestion: Squelch first, then ban. If you get floodbots, the first one will be squelched, but it probably won't be fast enough to ban (instead of the other way around). All the next ones will already be squelched, and the bot will ban them (IP ban).

NeTDeviL

So the first time you ban the person it /squelch's before or after it ban's then when it see's another name with the squelch icon on it, it bans them.