On *:TEXT:*:#: { if ( $1 == !clan ) { your stuff here... } elseif ( $1 == !links ) { your links stuff here... } elseif ( $1 == @stuff ) { your stuff here.. } }