Well there are alot of methods for comparing to strings/variables.
You can change the case letters, yes I know but this was just to get the script working. There are many solutions availiable, depening upon your needs:
You can use all of these: (some have exceptions... though)
or
Code: Select all
if {([string tolower $botnick] == [string tolower $target])}
or
or
Code: Select all
if {([string equal -nocase $pattern $string])}
or
Code: Select all
if {([string compare -nocase $pattern $string])}
There maybe more types of string/variable comparison
methods other than this as well, of which I am not aware.
But all commands these will compare, some might have alot of
accessibility and some might be very limited and restricted.
All will give basically the same results, but some conditions
yeah might not work if lower and upper characters are present
while comparing with commands, which give limited access.
I mainly use string equal or string comparison commands when scripting.
But that was just a small example to get the guys script working.
There can be alot of variations as alot of string manipulation
commands such as equal, comapare, ==, !=, and botnick
manipulation isbotnick, botisop etc are availiable.