rendered paste bodyon *:text:!add*:#:{
var %voice = 3
var %halfop = 4
var %op = 5
var %ao = 10
if ($address($nick,2) != $address($me,2)) { Halt }
elseif ($address($nick,2) == $address($me,2)) && ($3 == voice) { cs access $chan add $2 %voice | notice $nick $2 now has voice access on $chan $+ . }
elseif ($address($nick,2) == $address($me,2)) && ($3 == halfop) { cs access $chan add $2 %halfop | notice $nick $2 now has halfop access on $chan $+ . }
elseif ($address($nick,2) == $address($me,2)) && ($3 == op) { cs access $chan add $2 %op | notice $nick $2 now has op access on $chan $+ . }
elseif ($address($nick,2) == $address($me,2)) && ($3 == ao) { cs access $chan add $2 %ao | notice $nick $2 now has admin-op access on $chan $+ . }
}