;# You can set all types off '!triggers'.
;# !set <command> <text> - only operators
;# !unset <command> - only operators
;# !theme <theme> - only operators
;# !<command> - all
;# Tested and works on version 6.15
- Code: Select all
;#
;# visit http://sp00fed.org for updates or support.
;# script by Sumsar
;#
on *:TEXT:*:#: {
if (! == $left($1,1)) {
var %theme = $iif($eval($+(%,$chan,.,data,.,theme),2) != $null,$ifmatch,$chr(32))
if ($nick isop $chan) {
if (set == $right($1,-1)) { .set $+(%,$chan,.,$2) $3- | .msg $chan %theme Command $2 created. %theme }
if (unset == $right($1,-1)) { if ($+(%,$chan,.,$2) != $null) { .unset $+(%,$chan,.,$2) | .msg $chan %theme Command $2 deleted. %theme } }
if (theme == $right($1,-1)) { set $+(%,$chan,.,data,.,theme) $+($2-,) }
}
if ($eval($+(%,$chan,.,$right($1,-1)),2) != $null) { .msg $chan %theme $eval($+(%,$chan,.,$right($1,-1)),2) %theme }
}
}