On *:JOIN:#: { if ($nick isop $chan) { inc %opusers [ $+ [ $chan ] ] /notice $nick Hello, $nick $+ . You're the $+ %opusers $+ - Operator that joined $chan $+ . halt } if ($nick ishop $chan) { inc %hopusers [ $+ [ $chan ] ] /notice $nick Hello, $nick $+ . You're the $+ %hopusers $+ - Halfop that joined $chan $+ . halt } if ($nick isvoice $chan) { inc %vousers [ $+ [ $chan ] ] /notice $nick Hello, $nick $+ . You're the $+ %vousers $+ - Voice that joined $chan $+ . halt } if ($nick isreg $chan) { inc %regusers [ $+ [ $chan ] ] /notice $nick Hello, $nick $+ . You're the $+ %regusers $+ - User that joined $chan $+ . halt } }