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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
FIR[3]
Voice
Posts: 2 Joined: Wed Oct 26, 2005 3:17 pm
Post
by FIR[3] » Wed Oct 26, 2005 4:38 pm
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.
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Fri Oct 28, 2005 9:54 am
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 }
}
}