;news
on *:text:!news *:#chan:{
if $nick isop #chan { set %news. $+ # $2- }
}
on *:TEXT:!news:#chan:/msg $chan $iif(%news. [ $+ [ $chan ] ],$ifmatch,None.)
;thats the news
;welcome
ON *:text:welcome on:?: {
if ($nick isop #chan) {
.enable #welcome
.msg $nick Welcome message is now ON
}
else msg $nick You do not have access to this command
}
ON *:text:welcome off:?: {
if ($nick isop #chan) {
.disable #welcome
.msg $nick Welcome message is now OFF
}
else msg $nick You do not have access to this command
}
#welcome on
on *:JOIN:#chan:/msg $nick Welcome $nick ! Thx for coming to #chan channel! Plz stay, enjoy and perform!
#welcome end
;thats the welcome
;adv protect
ON *:text:adv_protect on:?: {
if ($nick isop #chan) {
.enable #adv_protect
.msg $nick adv protection is now ON
}
else msg $nick You do not have access to this command
}
ON *:text:adv_protect off:?: {
if ($nick isop #chan) {
.disable #adv_protect
.msg $nick adv protection is now OFF
}
else msg $nick You do not have access to this command
}
#adv_protect on
ON @*:TEXT:*:#chan: {
if ($wildtok($strip($1-),#*,0,32) > 0) && ($nick !isop $chan) {
var %ch = $wildtok($strip($1-),#*,0,32)
while (%ch) {
if ($wildtok($strip($1-),#*,%ch,32) != $chan) { var %adv = 1 }
dec %ch
}
if (%adv) {
inc $+(%,adv.,$nick,.,$chan)
if ($($+(%,adv.,$nick,.,$chan),2) => 2) {
ban -ku3600 $chan $nick 3 I told you, don't advertise
unset $+(%,adv.,$nick,.,$chan)
}
else {
kick $chan $nick No advertising channels here
}
}
}
}
#adv_protect end
;thats the adv protect
;flood
ON *:text:flood_protect on:?: {
if ($nick isop #chan) {
.enable #flood_protect
.msg $nick Text flood protection is now ON
}
else msg $nick You do not have access to this command
}
ON *:text:flood_protect off:?: {
if ($nick isop #chan) {
.disable #flood_protect
.msg $nick Text flood protection is now OFF
}
else msg $nick You do not have access to this command
}
#flood_protect on
on @*:TEXT:*:#chan: {
IF ($nick !isop #chan) {
IF (%flood2. [ $+ [ $wildsite ] ] == $null) {
set -u5 %flood2. [ $+ [ $wildsite ] ] 1
}
ELSEIF (%flood2. [ $+ [ $wildsite ] ] >= 3) {
kick $chan $nick You flooded, you were kicked....that's the deal!
unset %flood2. [ $+ [ $wildsite ] ]
}
ELSE { inc -u5 %flood2. [ $+ [ $wildsite ] ] }
}
}
#flood_protect end
;thats the flood