Why not use on ^*:rawmode:#: { write $chan $+ .txt [ $fulldate ] $nick Sets Mode $1- ( $network ) } for op deop voice devoice etc.