Hey guys, thanks for the kind words :) I'm working on something new and I hope to be done with it soon. I'm brainstorming some new ideas, so whatever you may want to see done, post to my wall http://www.hawkee.com/profile/805/. Thanks, again!
You don't need the 'goto skipper' or the :skipper jump point. Example:
Instead of this:
if ($left($1,1) == /) || ($left($1,1) == !) || ($left($1,1) == .) { goto skipper }
Use this:
if ($left($1,1) == /) || ($left($1,1) == !) || ($left($1,1) == .) { return }
The 'return' alias allows you to exit out of a function without halting things, only skipping the rest of the code if the if-then-else statement is TRUE. Enjoy! :)
Why not make an INI file that allows you to add the words to? This will make adding TONS of words easier. So, in an ini file, you have it laid out as:
[words]
badword=kick
badderword=kick,ban
Etc. You could set the option to kick and ban the users, just kick, warn, etc, depending on the level. Then, all you need is a loop to scan and make sure that the word is not in the file. You would want to load the INI into an active hash so that way scanning is easier. Anyways, just my 2 cents ;)
Jethro_: mIRC does, indeed, have an option to do this, however it does not let you specify the options that this one allows, such as how many times to try and how long to wait between tries.
Savage_CL: Instead of using some random, obscure alias name, a589, just use the -l tag in front of it and name it whatever you want. ie:
alias -l rejoin {
if ($1 == to) { return 2 }
if ($1 == tries) { return 30 }
}
The -l switch specifies that this alias is local and cannot be triggered outside of this script.
Also, think about using a period in front of the times, like: .timerunsetter This will ensure that all the timer commands are silent, ie: they won't be shown in your status bar or any other window you have open. If you don't use it, you get things like "timerBLAHBLAH set" or on, or whatever. It's kind of annoying :)