This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Channel protection Script

Old posts that have not been replied to for several years.
Locked
r
ruffneck1

Channel protection Script

Post by ruffneck1 »

Can anyone make me a Channel protection Script, include: Repeat, Flood, Advertise (Channel and Website), Channel Notice Ban. Finding these Script is no Problem, but i need an Special Ban. In my Channel are many Spamers, and the Bot have only 15 bans to use. So Time Ban sux, i want that the Bot bans -b+b *!*Old@evil.host *!*New@Evilhost. Cause, it sux when the Banlist is full and he just Kick and Kick and Kick :(. I Hope you understand me, cause my English sux.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

replace the ban with [maskhost *[getchanhost $uhost]]
r
ruffneck1

Post by ruffneck1 »

[maskhost *[getchanhost $uhost]] do -b+b?
Thats all? Sure? :o
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Add a call to this proc (with the channel name as a parameter) above each line of code placing a ban.
Or just insert the body of the proc (and change the variable name if needed).

Code: Select all

proc rmBanIfNeeded {chan} {
	if {[llength [chanbans $chan]]==${::max-bans}} {
		pushmode $chan -b [lindex [lindex [chanbans $chan] 0] 0]
	}
}
This proc doesn't care about sticky bans...if you need it to you'll have to code it yourself :)
r
ruffneck1

Post by ruffneck1 »

I understand nothing :cry:
Can anyone write me this Script please?
It must Ban:
Website Adv. (*!*Identd@Host)
Channel Adv. (*!*Identd@Host)
Repeat - 2 Repeats in 60 sec. (*!*Identd@Host)
Channel msg - 7 lines in 10 seconds (*!*Identd@Host)
Channel Notice - (*!*@Host)

It Can use 15 Bans, and when the 15 Bans are reached the Bot must set:
-b+b OldestBan NewBan and this all the Time :)
But he only set -b his Owne bans, no these from the user users.

Please Help :-?
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

I don't want to write you the script, and I doubt anyone else wants to either... the ban-removal problem I've already made an script for, it's old and I haven't used it for ages... but it's on the webby, it's called unbanner
Elen sila lúmenn' omentielvo
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

also User's solution is good, it removes the bans when the channel reaches the maximum bans.
Locked