on *:TEXT:!paragraph on:#: {
if ($nick isop #) {
set %paragraph. [ $+ [ $chan ] ] 1
msg $chan Paragraph protection enabled.
}
}
on *:TEXT:!paragraph off:#: {
if ($nick isop #) {
if ( %paragraph. [ $+ [ $chan ] ] == 1 ) {
set %paragraph. [ $+ [ $chan ] ] 0
msg $chan Paragraph protection disabled.
}
}
}
on *:TEXT:*:#: {
if ($nick isop #) { return }
if !$readini(regulars.ini,n,$chan,$$2) { return }
if ( %paragraph. [ $+ [ $chan ] ] == 1 ) {
if $len($1-) > 300) {
msg $chan /timeout $nick
msg $chan $nick has been timed out for 10 minutes for writing long messages. Please consider following the rules next time $nick $+ !
}
}
}
on *:TEXT:!addreg *:#: {
var %nick == $$2
if ($nick isop #) {
/writeini regulars.ini $chan $$2 $ctime
msg $chan $$2 has been added to the regulars list
}
}