You keep using a long line to generate a banmask, when it actualy a very simple command that doesn't require you to do a "getchanhost"
Code: Select all
set banmask "*!*@[lindex [split $host @] 1]"
You keep using the variable $botnick, mainly in the "isop" command. Using the "botisop" command instead, it saves you having to even bother with it's nickname.
Change the "putserv" command to output "mode" as caps, as the server may need it as a requirment.