on 500:text:*bt*:#: {
if ($1 == %c $+ bt) {
if ($2 == $null) { .msg $nick Command incomplete. Syntax: %c $+ bt <on|off>. | halt }
if ($2 !== $null) {
if ($2 == on) { .writeini -n ini\globals.ini Features BotTalk On | .enable #bt | .msg $nick The bot talk mode is now enabled. | halt }
if ($2 == off) { .writeini -n ini\globals.ini Features BotTalk Off | .disable #bt | .msg $nick The bot talk mode is now disabled. | halt }
else { .msg $nick $cl Error: Invalid parameter. Available parameters: ON/OFF. | halt }
}
}
}