Here's a snippit of my code:
Code: Select all
proc voice_devoice {nick uhost hand chan text} {
global voice_chan voice_devoice voice_endvoice voice_me
if { $voice_endvoice == 1 } {
if { ([isvoice $nick $voice_chan]) && (![voice_me $nick $voice_chan]) } {
pushmode $voice_chan -v $nickname
}
}
}
proc voice_me {nick uhost hand chan text} {
global voice_chan
if { [botisop $voice_chan] } {
if { (![isop $nick $voice_chan]) && (![isvoice $nick $voice_chan]) } {
putserv "MODE $voice_chan +v $nick"
}
}
}
During the !list "voice_me" voices all the FServe, so I was thinking why can't for devoice we have a negation of that? hence (![voice_me $nick $voice_chan]) however this doesn't work. But you understand what I'm after right? If they have voice, and voice_me didn't pick them up, then they should be devoiced.