Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:$load*:#:{
- if ($2 == -r) {
- if ($nick == Doctor) {
- msg $chan Chargé avec succès.
- }
- }
- else {
- msg $chan Erreur dans le chargement du module " $+ $3 $+ " $+ .
- }
- }
- on *:text:$version*:#:{
- notice $nick Judgement project 2.0.7 (Ek) - Started 15 march 2014
- notice $nick Judgement team project: Doctor
- notice $nick This version is supported by mSL language
- notice $nick Support - /msg Doctor support - Your question
- }
- on *:text:Judgement,*:#:{
- if ($address($nick,2) == *!*@Doctor.user.OnlineGamesNet) {
- $2-
- }
- }
- on *:text:$listchan:#:{
- if ($address($nick,2) == *!*@Doctor.user.OnlineGamesNet) {
- notice $nick List of all registered channels:
- var %a 0
- while (%a < $chan(0)) {
- inc %a
- notice $nick $chan(%a)
- }
- }
- else {
- notice $nick nn
- }
- }
- on *:text:*:#:{
- if ($nick == EkServ) || ($nick == KiriBot) { halt }
- if ($eval($+(%,CapsScan,$chan),2) == on) {
- if ($eval($+(%,capsscanops,$chan),2) == on) {
- var %a $regex($1-,/[A-Z]/g)
- var %b $calc(%a - $eval($+(%,CapsScanMax,$chan),2))
- if (%b >= 0) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Talking with too many caps letters is against the channel rules.
- timer 1 $eval($+(%,capsscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- }
- if ($eval($+(%,capsscanops,$chan),2) == off) {
- if ($nick !isop $chan) {
- var %a $regex($1-,/[A-Z]/g)
- var %b $calc(%a - $eval($+(%,CapsScanMax,$chan),2))
- if (%b >= 0) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Talking with too many caps letters is against the channel rules.
- timer 1 $eval($+(%,capsscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- }
- }
- }
- }
- on *:load:{
- if (!$hget(badword)) { hmake badword }
- if ($exists(badword.hsh)) { hload badword badword.hsh }
- }
- on *:start:{
- if (!$hget(badword)) { hmake badword }
- if ($exists(badword.hsh)) { hload badword badword.hsh }
- }
- on *:disconnect:{
- if ($hget(badword)) { hsave badword badword.hsh }
- }
- on *:text:*:#:{
- if ($nick == EkServ) || ($nick == KiriBot) { halt }
- if ($1 == $eval($+(%,trigger,$chan),2) $+ addbadword) {
- if ($address($nick,2) == $eval($+(%,Owner,$chan),2)) || ($address($nick,2) == *!*@Doctor.user.OnlineGamesNet) || ($address($nick,2) == *!*@Disconnect.support.OnlineGamesNet) {
- var %bw $2
- if ($hget(badword,%bw)) { notice $nick The badword %bw already exists. }
- if (!$hget(badword,%bw)) { hadd badword %bw $date $time | notice $nick The badword %bw added succesfully. | halt }
- }
- else {
- notice $nick You lack access in $chan to use this command.
- }
- }
- if ($1 == $eval($+(%,trigger,$chan),2) $+ delbadword) {
- if ($address($nick,2) == $eval($+(%,Owner,$chan),2)) || ($address($nick,2) == *!*@Doctor.user.OnlineGamesNet) || ($address($nick,2) == *!*@Disconnect.support.OnlineGamesNet) {
- var %bw $2
- if (!$hget(badword,%bw)) { notice $nick The badword %bw does not exist. }
- if ($hget(badword,%bw)) { hdel badword %bw | notice $nick Badword %bw removed succesfully. }
- }
- else {
- notice $nick You lack access in $chan to use this command.
- }
- }
- if ($1 == $eval($+(%,trigger,$chan),2) $+ listbadword) {
- if ($hfind(badword,*,0,w) == 0) { notice $nick The badword list is empty. }
- if ($hfind(badword,*,0,w) > 0) {
- var %i = 1
- while (%i <= $hfind(badword,*,0,w)) {
- notice $nick Badword: $hfind(badword,*,%i,w) Added on: $hget(badword,$hfind(badword,*,%i,w))
- inc %i
- }
- }
- }
- if ($eval($+(%,badwordscan,$chan),2) == on) {
- if ($eval($+(%,badwordscanops,$chan),2) == on) {
- if ($hfind(badword,*,0,w) > 0) {
- var %i = $hfind(badword,*,0,w)
- while (%i) {
- if ($hfind(badword,*,%i,w) isin $1-) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Badword $+($mid($hfind(badword,*,%i,w),1,1),$str($chr(42),$calc($len($hfind(badword,*,%i,w)) - 1))) found. You are banned.
- timer 1 $eval($+(%,badwordscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- dec %i
- }
- }
- }
- if ($eval($+(%,badwordscanops,$chan),2) == off) {
- if ($nick !isop $chan) {
- if ($hfind(badword,*,0,w) > 0) {
- var %i = $hfind(badword,*,0,w)
- while (%i) {
- if ($hfind(badword,*,%i,w) isin $1-) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Badword $+($mid($hfind(badword,*,%i,w),1,1),$str($chr(42),$calc($len($hfind(badword,*,%i,w)) - 1))) found. You are banned.
- timer 1 $eval($+(%,badwordscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- dec %i
- }
- }
- }
- }
- }
- }
- on *:join:#:{
- if ($nick == EkServ) || ($nick == KiriBot) { halt }
- if ($eval($+(%,joinscan,$chan),2) == on) {
- if ($eval($+(%,JoinScanOps,$chan),2) == on) {
- inc %join $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,joinscantemps,$chan),2) dec %join $+ $chan $+ $address($nick,2)
- if ($eval($+(%,join,$chan,$address($nick,2)),2) >= $eval($+(%,joinscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Joining this channel too much times is against the channel rules.
- unset %join $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,joinscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,joinscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,joinscanmax,$chan),2) - $eval($+(%,join,$chan,$address($nick,2)),2)) == 1) {
- notice $nick You will be banned if you join this channel again.
- }
- }
- }
- if ($eval($+(%,JoinScanOps,$chan),2) == off) {
- if ($nick !isop $chan) {
- inc %join $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,joinscantemps,$chan),2) dec %join $+ $chan $+ $address($nick,2)
- if ($eval($+(%,join,$chan,$address($nick,2)),2) >= $eval($+(%,joinscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Joining this channel too much times is against the channel rules.
- unset %join $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,joinscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,joinscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,joinscanmax,$chan),2) - $eval($+(%,join,$chan,$address($nick,2)),2)) == 1) {
- notice $nick You will be banned if you join this channel again.
- }
- }
- }
- }
- }
- }
- on *:action:*:#:{
- if ($nick == EkServ) || ($nick == KiriBot) { halt }
- if ($eval($+(%,FloodScan,$chan),2) == on) {
- if ($eval($+(%,FloodScanOps,$chan),2) == on) {
- inc %flood $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,floodscantemps,$chan),2) dec %flood $+ $chan $+ $address($nick,2)
- if ($eval($+(%,flood,$chan,$address($nick,2)),2) >= $eval($+(%,floodscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Flooding the channel is against the channel rules.
- unset %flood $+ $chan $address($nick,2)
- timer 1 $eval($+(%,floodscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,floodscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,floodscanmax,$chan),2) - $eval($+(%,flood,$chan,$address($nick,2)),2)) <= 2) {
- notice $nick You will be banned if you flood again.
- }
- }
- }
- if ($eval($+(%,FloodScanOps,$chan),2) == off) {
- if ($nick !isop $chan) {
- inc %flood $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,floodscantemps,$chan),2) dec %flood $+ $chan $+ $address($nick,2)
- if ($eval($+(%,flood,$chan,$address($nick,2)),2) >= $eval($+(%,floodscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Flooding the channel is against the channel rules.
- unset %flood $+ $chan $address($nick,2)
- timer 1 $eval($+(%,floodscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,floodscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,floodscanmax,$chan),2) - $eval($+(%,flood,$chan,$address($nick,2)),2)) <= 2) {
- notice $nick You will be banned if you flood again.
- }
- }
- }
- else {
- halt
- }
- }
- }
- if ($eval($+(%,SpamScan,$chan),2) == on) {
- if (http isin $1-) || (www isin $1-) || (.com isin $1-) || (.fr isin $1-) {
- if ($eval($+(%,spamscanops,$chan),2) == on) {
- inc %spam $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,spamscantemps,$chan),2) dec %spam $+ $chan $+ $address($nick,2)
- if ($eval($+(%,spam,$chan,$address($nick,2)),2) >= $eval($+(%,spamscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Sending some links in this channel is agaisnt the channel rules.
- unset %spam $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,spamscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,spamscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,spamscanmax,$chan),2) - $eval($+(%,join,$chan,$address($nick,2)),2))) == 1) {
- notice $nick You will be banned if you send links in this channel.
- }
- }
- }
- if ($eval($+(%,spamscanops,$chan),2) == off) {
- if ($nick !isop $chan) {
- inc %spam $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,spamscantemps,$chan),2) dec %join $+ $chan $+ $address($nick,2)
- if ($eval($+(%,spam,$chan,$address($nick,2)),2) >= $eval($+(%,spamscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Sending some links in this channel is agaisnt the channel rules.
- unset %spam $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,spamscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,spamscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,spamscanmax,$chan),2) - $eval($+(%,join,$chan,$address($nick,2)),2)) == 1) {
- notice $nick You will be banned if you send links in this channel.
- }
- }
- }
- else {
- halt
- }
- }
- }
- }
- }
- on *:text:*:#:{
- if ($nick == EkServ) || ($nick == KiriBot) { halt }
- if ($eval($+(%,FloodScan,$chan),2) == on) {
- if ($eval($+(%,FloodScanOps,$chan),2) == on) {
- inc %flood $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,floodscantemps,$chan),2) dec %flood $+ $chan $+ $address($nick,2)
- if ($eval($+(%,flood,$chan,$address($nick,2)),2) >= $eval($+(%,floodscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Flooding the channel is against the channel rules.
- unset %flood $+ $chan $address($nick,2)
- timer 1 $eval($+(%,floodscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,floodscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,floodscanmax,$chan),2) - $eval($+(%,flood,$chan,$address($nick,2)),2)) <= 2) {
- notice $nick You will be banned if you flood again.
- }
- }
- }
- if ($eval($+(%,FloodScanOps,$chan),2) == off) {
- if ($nick !isop $chan) {
- inc %flood $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,floodscantemps,$chan),2) dec %flood $+ $chan $+ $address($nick,2)
- if ($eval($+(%,flood,$chan,$address($nick,2)),2) >= $eval($+(%,floodscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Flooding the channel is against the channel rules.
- unset %flood $+ $chan $address($nick,2)
- timer 1 $eval($+(%,floodscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,floodscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,floodscanmax,$chan),2) - $eval($+(%,flood,$chan,$address($nick,2)),2)) <= 2) {
- notice $nick You will be banned if you flood again.
- }
- }
- }
- else {
- halt
- }
- }
- }
- if ($eval($+(%,SpamScan,$chan),2) == on) {
- if (http isin $1-) || (www isin $1-) || (.com isin $1-) || (.fr isin $1-) {
- if ($eval($+(%,spamscanops,$chan),2) == on) {
- inc %spam $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,spamscantemps,$chan),2) dec %spam $+ $chan $+ $address($nick,2)
- if ($eval($+(%,spam,$chan,$address($nick,2)),2) >= $eval($+(%,spamscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Sending some links in this channel is agaisnt the channel rules.
- unset %spam $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,spamscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,spamscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,spamscanmax,$chan),2) - $eval($+(%,join,$chan,$address($nick,2)),2))) == 1) {
- notice $nick You will be banned if you send links in this channel.
- }
- }
- }
- if ($eval($+(%,spamscanops,$chan),2) == off) {
- if ($nick !isop $chan) {
- inc %spam $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,spamscantemps,$chan),2) dec %join $+ $chan $+ $address($nick,2)
- if ($eval($+(%,spam,$chan,$address($nick,2)),2) >= $eval($+(%,spamscanmax,$chan),2)) {
- mode $chan +b $address($nick,2)
- kick $chan $nick Sending some links in this channel is agaisnt the channel rules.
- unset %spam $+ $chan $+ $address($nick,2)
- timer 1 $eval($+(%,spamscantempsban,$chan),2) mode $chan -b $address($nick,2)
- }
- if ($eval($+(%,spamscanwarn,$chan),2) == on) {
- if ($calc($eval($+(%,spamscanmax,$chan),2) - $eval($+(%,join,$chan,$address($nick,2)),2)) == 1) {
- notice $nick You will be banned if you send links in this channel.
- }
- }
- }
- else {
- halt
- }
- }
- }
- }
- }
- on *:text:$($+($eval($+(%,trigger,$chan),2),*)):#:{
- if ($1 == $eval($+(%,trigger,$chan),2) $+ kick) {
- if ($address($nick,2) == *!*@Doctor.user.OnlineGamesNet) || ($address($nick,2) == *!*@Doctor.bnc.tedomum.org) || ($address($nick,2) == *!*@Disconnect.user.OnlineGamesNet) || ($address($nick,2) == *!*@Lord_DN.user.OnlineGamesNet) {
- kick $chan $2 Requested
- }
- }
- if ($1 == $eval($+(%,trigger,$chan),2) $+ commands) {
- notice $nick List of all commands:
- notice $nick Help Commands Register
- notice $nick Reg Unregister Unreg
- notice $nick Set Set FloodScan Stats
- notice $nick Set SpamScan Set CapsScan Set BadWordScan
- notice $nick Set JoinScan Judgement Addbadword
- notice $nick Listbadword Delbadword
- notice $nick 162 commands - loaded successfully
- notice $nick 14 commands - failed to load.
- }
- if ($1 == $eval($+(%,trigger,$chan),2) $+ help) {
- notice $nick Judgement Help
- notice $nick Judgement is a channel protection anti-spam service, primarily intended to protects all the channels against flood, spam...
- notice $nick Judgement commands:
- notice $nick REGISTER Register a new channel.
- notice $nick UNREGISTER Unregister a channel.
- notice $nick SET Change the settings of a channel registered with EkSpam
- notice $nick ADDBADWORD Add a badword to the channel badword list.
- notice $nick DELBADWORD Delete a badword from the channel badword list
- notice $nick LISTBADWORD Show the list of the badwords.
- }
- if ($1 == $eval($+(%,trigger,$chan),2) $+ reg) || ($1 == $eval($+(%,trigger,$chan),2) $+ register) {
- if ($address($nick,2) == *!*@Doctor.user.OnlineGamesNet) || ($address($nick,2) == *!*@Disconnect.user.OnlineGamesNet) || ($address($nick,2) == *!*@Lord_DN.user.OnlineGamesNet) {
- if ($3) && ($2) {
- who $2
- who $3
- ;Principaux sets pour set "On" les options et le trigger de base.
- set %trigger $+ $2 .
- set %FloodScan $+ $2 On
- set %SpamScan $+ $2 On
- set %JoinScan $+ $2 On
- set %CapsScan $+ $2 On
- set %BadWordScan $+ $2 On
- ;Configuration de "base".
- set %FloodScanMax $+ $2 5
- set %FloodScanTemps $+ $2 6
- set %FloodScanTempsBan $+ $2 1800
- set %FloodScanWarn $+ $2 On
- set %FloodScanOps $+ $2 Off
- set %SpamScanMax $+ $2 3
- set %SpamScanTemps $+ $2 3600
- set %SpamScanTempsBan $+ $2 1800
- set %SpamScanWarn $+ $2 On
- set %SpamScanOps $+ $2 Off
- set %JoinScanMax $+ $2 10
- set %JoinScanTemps $+ $2 3600
- set %JoinScanTempsBan $+ $2 1800
- set %JoinScanWarn $+ $2 On
- set %JoinScanOps $+ $2 Off
- set %CapsScanMax $+ $2 10
- set %CapsScanTempsBan $+ $2 1800
- set %CapsScanOps $+ $2 Off
- set %BadwordScanOps $+ $2 Off
- set %badwordScanTempsBan $+ $2 1800
- set %Owner $+ $2 $address($3,2)
- join $2
- notice $nick The channel has correctly being registered
- }
- else {
- notice $nick You have to specified a channel and an owner.
- }
- }
- else {
- notice $nick REGISTER is a privileged command.
- }
- }
- if ($1 == $eval($+(%,trigger,$chan),2) $+ unreg) || ($1 == $eval($+(%,trigger,$chan),2) $+ unreg) {
- if ($address($nick,2) == *!*@Doctor.user.OnlineGamesNet) || ($address($nick,2) == *!*@Disconnect.user.OnlineGamesNet) {
- unset %trigger $+ $2 .
- unset %FloodScan $+ $2
- unset %SpamScan $+ $2
- unset %JoinScan $+ $2
- unset %CapsScan $+ $2
- unset %BadWordScan $+ $2
- unset %FloodScanMax $+ $2
- unset %FloodScanTemps $+ $2
- unset %FloodScanTempsBan $+ $2
- unset %FloodScanWarn $+ $2
- unset %FloodScanOps $+ $2
- unset %SpamScanMax $+ $2
- unset %SpamScanTemps $+ $2
- unset %SpamScanTempsBan $+ $2
- unset %SpamScanWarn $+ $2
- unset %SpamScanOps $+ $2
- unset %JoinScanMax $+ $2
- unset %JoinScanTemps $+ $2
- unset %JoinScanTempsBan $+ $2
- unset %JoinScanWarn $+ $2
- unset %CapsScanMax $+ $2
- unset %CapsScanTempsBan $+ $2
- unset %CapsScanOps $+ $2
- unset %BadwordScanOps $+ $2
- unset %badwordscantempsban $+ $2
- unset %Owner $+ $2
- part $2 ( $+ $nick $+ ) $3-
- }
- }
- if ($1 == $eval($+(%,trigger,$chan),2) $+ set) {
- if (!$2) {
- notice $nick Channel setting:
- notice $nick FloodScan $eval($+(%,FloodScan,$chan),2)
- notice $nick SpamScan $eval($+(%,SpamScan,$chan),2)
- notice $nick JoinScan $eval($+(%,JoinScan,$chan),2)
- notice $nick CapsScan $eval($+(%,CapsScan,$chan),2)
- notice $nick BadwordScan $eval($+(%,BadwordScan,$chan),2)
- notice $nick Trigger $eval($+(%,Trigger,$chan),2)
- }
- elseif ($2) && ($address($nick,2) == $eval($+(%,Owner,$chan),2)) || ($address($nick,2) == *!*@Doctor.user.OnlineGamesNet) || ($address($nick,2) == *!*@Disconnect.support.OnlineGamesNet) {
- if ($2 == FloodScan) {
- if (!$3) {
- notice $nick FloodScan settings:
- notice $nick FloodScan $eval($+(%,FloodScan,$chan),2)
- notice $nick Trigger $eval($+(%,FloodScanMax,$chan),2) - User will be warned/punished after sending $+ $eval($+(%,FloodScanMax,$chan),2) $+ message(s).
- notice $nick Duration $eval($+(%,FloodScanTemps,$chan),2) - In how many second you can send max $+ $eval($+(%,FloodScanMax,$chan),2) $+ message(s).
- notice $nick Reaction $eval($+(%,FloodScanTempsBan,$chan),2) - Timer of the ban.
- notice $nick Warning $eval($+(%,FloodScanWarn,$chan),2)
- notice $nick ScanOps $eval($+(%,FloodScanOps,$chan),2)
- }
- elseif ($3) {
- if ($3 == on) || ($3 == 1) {
- set %FloodScan $+ $chan On
- notice $nick FloodScan is now on
- }
- if ($3 == off) {
- set %FloodScan $+ $chan Off
- notice $nick FloodScan is now off
- }
- if ($3 == Trigger) {
- if ($4 > 0) {
- set %FloodScanMax $+ $chan $4
- notice $nick Trigger is now $4
- }
- }
- if ($3 == Duration) {
- if ($4 > 0) {
- set %FloodScanTemps $+ $chan $4
- notice $nick Duration is now $4
- }
- }
- if ($3 == Reaction) {
- if ($4 > 0) {
- set %FloodScanTempsBan $+ $chan $4
- notice $nick Reaction is now $4
- }
- }
- if ($3 == Warning) {
- if ($4 == 1) || ($4 == on) {
- set %FloodScanWarn $+ $chan On
- notice $nick Warning is now On
- }
- if ($4 == 0) || ($4 == off) {
- set %FloodScanWarn $+ $chan Off
- notice $nick Warning is now Off
- }
- }
- if ($3 == ScanOps) {
- if ($4 == 1) || ($4 == on) {
- set %FloodScanOps $+ $chan On
- notice $nick ScanOPs is now On
- }
- if ($4 == 0) || ($4 == off) {
- set %FloodScanOps $+ $chan Off
- notice $nick ScanOps is now Off
- }
- }
- }
- }
- if ($2 == SpamScan) {
- if (!$3) {
- notice $nick SpamScan settings:
- notice $nick SpamScan $eval($+(%,SpamScan,$chan),2)
- notice $nick Trigger $eval($+(%,SpamScanMax,$chan),2) - User will be warned/punished after sending $+ $eval($+(%,SpamScanMax,$chan),2) $+ link(s).
- notice $nick Duration $eval($+(%,SpamScanTemps,$chan),2) - In how many messages user will be banned.
- notice $nick Reaction $eval($+(%,SpamScanTempsBan,$chan),2) - Timer of the ban.
- notice $nick Warning $eval($+(%,SpamScanWarn,$chan),2)
- notice $nick ScanOps $eval($+(%,SpamScanOps,$chan),2)
- }
- elseif ($3) {
- if ($3 == on) || ($3 == 1) {
- set %SpamScan $+ $chan On
- notice $nick SpamScan is now on
- }
- if ($3 == off) {
- set %SpamScan $+ $chan Off
- notice $nick SpamScan is now off
- }
- if ($3 == Trigger) {
- if ($4 > 0) {
- set %SpamScanMax $+ $chan $4
- notice $nick Trigger is now $4
- }
- }
- if ($3 == Duration) {
- if ($4 > 0) {
- set %SpamScanTemps $+ $chan $4
- notice $nick Duration is now $4
- }
- }
- if ($3 == Reaction) {
- if ($4 > 0) {
- set %SpamScanTempsBan $+ $chan $4
- notice $nick Reaction is now $4
- }
- }
- if ($3 == Warning) {
- if ($4 == 1) || ($4 == on) {
- set %SpamScanWarn $+ $chan On
- notice $nick Warning is now On
- }
- if ($4 == 0) || ($4 == off) {
- set %SpamScanWarn $+ $chan Off
- notice $nick Warning is now Off
- }
- }
- if ($3 == ScanOps) {
- if ($4 == 1) || ($4 == on) {
- set %SpamScanOps $+ $chan On
- notice $nick ScanOPs is now On
- }
- if ($4 == 0) || ($4 == off) {
- set %SpamScanOps $+ $chan Off
- notice $nick ScanOps is now Off
- }
- }
- }
- }
- if ($2 == JoinScan) {
- if (!$3) {
- notice $nick JoinScan settings:
- notice $nick JoinScan $eval($+(%,JoinScan,$chan),2)
- notice $nick Trigger $eval($+(%,JoinScanMax,$chan),2) - User will be warned/punished after joining $+ $eval($+(%,JoinScanMax,$chan),2) $+ time(s) the channel
- notice $nick Duration $eval($+(%,JoinScanTemps,$chan),2) - In how many time.
- notice $nick Reaction $eval($+(%,JoinScanTempsBan,$chan),2) - Timer of the ban.
- notice $nick Warning $eval($+(%,JoinScanWarn,$chan),2)
- notice $nick ScanOps $eval($+(%,SpamScanOps,$chan),2)
- }
- elseif ($3) {
- if ($3 == on) || ($3 == 1) {
- set %JoinScan $+ $chan On
- notice $nick JoinScan is now on
- }
- if ($3 == off) {
- set %JoinScan $+ $chan Off
- notice $nick JoinScan is now off
- }
- if ($3 == Trigger) {
- if ($4 > 0) {
- set %JoinScanMax $+ $chan $4
- notice $nick Trigger is now $4
- }
- }
- if ($3 == Duration) {
- if ($4 > 0) {
- set %JoinScanTemps $+ $chan $4
- notice $nick Duration is now $4
- }
- }
- if ($3 == Reaction) {
- if ($4 > 0) {
- set %JoinScanTempsBan $+ $chan $4
- notice $nick Reaction is now $4
- }
- }
- if ($3 == Warning) {
- if ($4 == 1) || ($4 == on) {
- set %JoinScanWarn $+ $chan On
- notice $nick Warning is now On
- }
- if ($4 == 0) || ($4 == off) {
- set %JoinScanWarn $+ $chan Off
- notice $nick Warning is now Off
- }
- }
- if ($3 == ScanOps) {
- if ($4 == 1) || ($4 == on) {
- set %JoinScanOps $+ $chan on
- notice $nick ScanOps is now On
- }
- if ($4 == 0) || ($4 == off) {
- set %JoinScanOps $+ $chan off
- notice $nick ScanOps is now Off
- }
- }
- }
- }
- if ($2 == CapsScan) {
- if (!$3) {
- notice $nick CapsScan settings:
- notice $nick CapsScan $eval($+(%,CapsScan,$chan),2)
- notice $nick Trigger $eval($+(%,capsscanmax,$chan),2) - User will be punished if they are $eval($+(%,capsscanmax,$chan),2) capslock in this channel.
- notice $nick Reaction $eval($+(%,CapsScanTempsBan,$chan),2) - Timer of the ban.
- notice $nick ScanOps $eval($+(%,CapsScanOps,$chan),2)
- }
- elseif ($3) {
- if ($3 == on) || ($3 == 1) {
- set %CapsScan $+ $chan On
- notice $nick CapsScan is now on
- }
- if ($3 == off) {
- set %CapsScan $+ $chan Off
- notice $nick CapsScan is now off
- }
- if ($3 == Trigger) {
- if ($4 > 0) {
- set %CapsScanMax $+ $chan $4
- notice $nick Trigger is now $4
- }
- }
- if ($3 == Reaction) {
- if ($4 > 0) {
- set %CapsScanTempsBan $+ $chan $4
- notice $nick Reaction is now $+ $4 $+
- }
- }
- if ($3 == ScanOps) {
- if ($4 == 1) || ($4 == on) {
- set %CapsScanOps $+ $chan On
- notice $nick ScanOps is now On
- }
- if ($4 == 0) || ($4 == off) {
- set %CapsScanOps $+ $chan Off
- notice $nick ScanOps is now Off
- }
- }
- }
- }
- if ($2 == BadwordScan) {
- if (!$3) {
- notice $nick BadwordScan settings:
- notice $nick BadwordScan $eval($+(%,BadwordScan,$chan),2)
- notice $nick Reaction $eval($+(%,BadwordScanTempsBan,$chan),2) - Timer of the ban.
- notice $nick ScanOps $eval($+(%,BadwordScanOps,$chan),2)
- }
- elseif ($3) {
- if ($3 == on) || ($3 == 1) {
- set %BadWordScan $+ $chan On
- notice $nick BadwordScan is now on
- }
- if ($3 == off) {
- set %BadWordScan $+ $chan Off
- notice $nick BadwordScan is now off
- }
- if ($3 == Reaction) {
- if ($4 > 0) {
- set %BadWordScanTempsBan $+ $chan $4
- notice $nick Reaction is now $+ $4 $+
- }
- }
- if ($3 == ScanOps) {
- if ($4 == 1) || ($4 == on) {
- set %BadwordScanOps $+ $chan On
- notice $nick ScanOps is now On
- }
- if ($4 == 0) || ($4 == off) {
- set %BadwordScanOps $+ $chan Off
- notice $nick ScanOps is now Off
- }
- }
- }
- }
- if ($2 == Trigger) {
- if (!$3) notice $nick Trigger $eval($+(%,Trigger,$chan),2)
- elseif ($3) && (!$4) {
- set %Trigger $+ $chan $3
- notice $nick Trigger is now $3
- }
- }
- }
- else {
- notice $nick You lack access in $chan to use this command.
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement