Hi, i need some help with temp ban script - 07/11/07 10:10 AM
I find 1 script earlier has a virus in it. So i dare not try any unknown scripts again.
This is a channel protection script i found, I set it to max 3 chat per min, but after someone spam in the channel more 3 per min. This kick and ban that person.
What im finding is after someone talk more then 3 time per min in that channel, the bot temp ban that person for 5min for volating the rule.
Is it possible for me?
This is a copy of the script.
Any people here who has that script can share with me?
This is a channel protection script i found, I set it to max 3 chat per min, but after someone spam in the channel more 3 per min. This kick and ban that person.
What im finding is after someone talk more then 3 time per min in that channel, the bot temp ban that person for 5min for volating the rule.
Is it possible for me?
This is a copy of the script.
Any people here who has that script can share with me?
Code:
on 400:text:*flood*:#: { if ($1 == %c $+ global_flood) { if ($level($mask($address($nick,2),2)) < 500) { .msg $nick Only the bot owner can set this flag. | halt } if ($2 == $null) { .msg $nick Command incomplete. Syntax: %c $+ global_flood <on|off>. | halt } if ($2 !== $null) { if ($2 == on) { writeini -n ini\globals.ini Protections Flood On | .msg $nick Global Flood Protection now set to ON. | .enable #flood | halt } if ($2 == off) { writeini -n ini\globals.ini Protections Flood Off | .msg $nick Global Flood Protection now set to OFF. | .disable #flood | halt } else { .msg $nick Incorrect parameter. Available parameters: ON/OFF. | halt } } } if ($1 == %c $+ channel_flood) { if ($2 == $null) { .msg $nick Command incomplete. Syntax: %c $+ channel_flood <on|off>. | halt } if ($2 !== $null) { if (($readini(ini\globals.ini, Protections, Flood) == off) || ($readini(ini\globals.ini, Protections, Flood) == $null)) { .msg $nick Global Flood Protection not enabled. Contact the bot owner to enable it. | halt } if ($2 == on) { writeini -n ini\channels.ini $chan Flood On | .msg $nick Flood protection for $chan set to ON. | halt } if ($2 == off) { writeini -n ini\channels.ini $chan Flood Off | .msg $nick Flood protection for $chan set to OFF. | halt } else { .msg $nick Incorrect parameter. Available parameters: ON/OFF. | halt } } } } on 400:text:*flood*:?: { if ($1 == global_flood) { if ($level($mask($address($nick,2),2)) < 500) { .msg $nick Only the bot owner can set this flag. | halt } if ($2 == $null) { .msg $nick Command incomplete. Syntax: /msg $me global_flood <on|off>. | halt } if ($2 !== $null) { if ($2 == on) { writeini -n ini\globals.ini Protections Flood On | .msg $nick Global Flood Protection now set to ON. | .enable #flood | halt } if ($2 == off) { writeini -n ini\globals.ini Protections Flood Off | .msg $nick Global Flood Protection now set to OFF. | .disable #flood | halt } else { .msg $nick Incorrect parameter. Available parameters: ON/OFF. | halt } } } if ($1 == channel_flood) { if ($2 == $null) { .msg $nick Command incomplete. Syntax: /msg $me channel_flood <#channel> <on|off>. | halt } if ($2 !== $null) && ($3 !== $null) { if (($readini(ini\globals.ini, Protections, Flood) == off) || ($readini(ini\globals.ini, Protections, Flood) == $null)) { .msg $nick Global Flood Protection not enabled. Contact the bot owner to enable it. | halt } if ($3 == on) { writeini -n ini\channels.ini $2 Flood On | .msg $nick Flood protection for $2 set to ON. | halt } if ($3 == off) { writeini -n ini\channels.ini $2 Flood Off | .msg $nick Flood protection for $2 set to OFF. | halt } else { .msg $nick Incorrect parameter. Available parameters: ON/OFF. | halt } } } } #flood on on @+1!:text:*:#: { if ($nick isop $chan) { halt } inc %flood.nick [ $+ [ $nick ] $+ [ $chan ] ] .timer 1 %flood.channel.time /unset %flood.nick [ $+ [ $nick ] $+ [ $chan ] ] if (%flood.nick [ $+ [ $nick ] $+ [ $chan ] ] > %flood.channel.lines) { if (($readini(ini\globals.ini, Protections, Flood) == on) && ($readini(ini\channels.ini, $chan, Flood) == on)) { $iif(%kb.method != 2, mode $chan +btn $mask($address($nick,2),2)) | kick $chan $nick $cl Flood | unset %flood.nick [ $+ [ $nick ] ] | halt } } else { halt } } on @+1!:action:*:#: { if ($nick isop $chan) { halt } inc %flood.nick [ $+ [ $nick ] $+ [ $chan ] .timer 1 %flood.channel.time /unset %flood.nick [ $+ [ $nick ] $+ [ $chan ] if (%flood.nick [ $+ [ $nick ] $+ [ $chan ] > %flood.channel.lines) { if (($readini(ini\globals.ini, Protections, Flood) == on) && ($readini(ini\channels.ini, $chan, Flood) == on)) { $iif(%kb.method != 2, mode $chan +btn $mask($address($nick,2),2)) | kick $chan $nick $cl Flood | unset %flood.nick [ $+ [ $nick ] ] | halt } } else { halt } } #flood end on @1:deop:#: { if ($nick == $me) { halt } if ($level($mask($address($opnick,2),2)) > $level($mask($address($nick,2),2))) { mode $chan -o+o $nick $opnick | .msg $nick Illegal deop. } } ;@@@ Self protections @@@ on +1!:Text:*:?: { if ($readini(ini\globals.ini, Protections, SFlood) == On) { inc %flood.nick [ $+ [ $nick ] .timer 1 %flood.self.time /unset %flood.nick [ $+ [ $nick ] if (%flood.nick [ $+ [ $nick ] > %flood.self.num) { .ignore -pnitkdu $+ %flood.self.ignore $nick 2 } } } on +1!:notice:*:?: { if ($readini(ini\globals.ini, Protections, SNotice) == On) { inc %flood.nickN [ $+ [ $nick ] .timer 1 %notice.self.time /unset %flood.nickN [ $+ [ $nick ] if (%flood.nickN [ $+ [ $nick ] > %notice.self.num) { .ignore -pnitkdu $+ %notice.self.ignore $nick 2 } } } ctcp +1!:*:?: { if ($readini(ini\globals.ini, Protections, SCtcp) == On) { inc %flood.nickC [ $+ [ $nick ] .timer 1 %CTCP.self.time /unset %flood.nickC [ $+ [ $nick ] if (%flood.nickC [ $+ [ $nick ] > %CTCP.self.num) { .ignore -pnitkdu $+ %CTCP.self.ignore $nick 2 } } } on +1!:invite:*: { if ($readini(ini\globals.ini, Protections, SInvite) == On) { inc %flood.nickI [ $+ [ $nick ] .timer 1 %invite.self.time /unset %flood.nickI [ $+ [ $nick ] if (%flood.nickI [ $+ [ $nick ] > %invite.self.num) { .ignore -pnitkdu $+ %invite.self.ignore $nick 2 } } }