Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bind pub nmo|nmo .usergreet usergreet_settings
- proc usergreet_settings {nick uhost hand chan text} {
- set status [channel get $chan usergreet]
- set mode [string tolower [lindex [split $text] 0]]
- switch -- $mode {
- "on" {
- if {!$status} {
- channel set $chan +usergreet
- puthelp "PRIVMSG #protect :\002\0031,0 usergreet \003\002 - Script activado!"
- putlog "usergreet script enabled (by $nick for $chan)"
- } else {
- puthelp "NOTICE $nick :usergreet ya esta activado"
- }
- }
- "off" {
- if {$status} {
- channel set $chan -usergreet
- puthelp "PRIVMSG $chan :\002\0031,0 usergreet \003\002 - Script desactivado"
- putlog "usergreet script disabled (by $nick for $chan)"
- } else {
- puthelp "NOTICE $nick :usergreet ya esta desactivado"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement