bind pub - .rehash rehashsp bind pub - .die diesp bind pub - .restart restartsp bind pub - .uptime uptime proc formatize { text } { return "\002\00314\[\002$text\002\]\003\002" } proc admincheck { hand } { if {![matchattr $hand m|m]} { return "no" } else { return "yes" } } proc rehashsp {nick host hand chan var} { if {[admincheck $hand] == "yes"} { rehash putserv "NOTICE $nick :[formatize "$nick"] Rehash Complete" } else { putserv "NOTICE $nick :[formatize "$nick"] Access Denied" } } proc restartsp {nick host hand chan var} { if {[admincheck $hand] == "yes"} { putserv "NOTICE $nick :[formatize "$nick"] Restarting..." utimer 2 "restart" } else { putserv "NOTICE $nick :[formatize "$nick"] Access Denied" } } proc diesp {nick host hand chan var} { if {[admincheck $hand] == "yes"} { die "Connection Rest by $nick" } else { putserv "NOTICE $nick :[formatize "$nick"] Access Denied" } }