on *:mode:#arpc: { if ( $nick isop $chan ) { if ( $1 == k ) { var %key = $1 } if ( $nick ishop $chan ) { mode # -k $1 mode # +k %key } } }