on *:text:!*:#: { if ($nick isop $chan) || ($nick ishop $chan) { if ($1 == .enable) { .enable #bot | msg $chan Bot enabled } elseif ($1 == !disable) { .disable #bot | msg $chan Bot disabled } } } #bot off blah blah blah #bot end