Code: Select all
bind join - "% *" giveSOP
proc giveSOP {nick uhost handle chan} {
if {[matchattr $handle A]} {
putserv "mode $chan +a $nick"
}
}
This method of auto-awarding +a is not secure, as the bot is watching the users hostmask.
I think that if you want certain users, with certain flags, to be able to get +a, then it would be better for these users to have to identify themselves with a password.
On the one network I tried the above script on, I could not fully test it.
This was because the bot was not the channel owner, and only the channel owner can award +a there.
I could see that the bot did try to award +a though, and was denied.