This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Anouncement script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
F
FIR[3]
Voice
Posts: 2
Joined: Wed Oct 26, 2005 3:17 pm

Anouncement script

Post by FIR[3] »

I need a script where I can devoice and deop everyone in the channel except for me and bot to make anouncements. Also a chanserv command to /msg chanserv LEVELS #channel SET autovoice 1. I also need the script to be able to !anounceoff to revoice everyone and I can manually op everyone again.
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind pub n !announceon announce:on
bind pub n !announceoff announce:off

proc announce:on {nick uhost hand chan arg} {
 foreach n [chanlist $chan] {
  if {[isbotnick $n] || [matchattr [nick2hand $n] n]} {continue}
  if {[isop $n $chan]} { pushmode $chan -o $n }
  if {[isvoice $n $chan]} { pushmode $chan -v $n }
 }
 puthelp "PRIVMSG ChanServ :LEVELS $chan SET autovoice 1"
}

proc announce:off {nick uhost hand chan arg} {
 foreach n [chanlist $chan] {
  if {![isvoice $n $chan]} { pushmode $chan +v $n }
 }
}
Post Reply