Interesting approach to this, but why not use add a warning? It seems a bit harsh to directly kban, even though it\'s for 30 seconds. Also, why not use ban -ku30? I don\'t think there is a need for the timer, other than giving a two second interval. Nice job on this I like it.
A couple of the features don\'t really need to be included. Why would you say if you are away when it already says the message when you leave. If you supported a timer, that would make a bit more sense. What I would like to see in this snippet is some more features. Such as a log feature or an input return feature. If you are messaging to an active channel, you should include a highlight feature.
As to the use of all those global variables, that isn\'t needed. Try using var %away = $$?=\"Enter away msg:\" and then using the $awaymsg identifier. Your %atime identifier isn\'t needed at all. You can use mIRC\'s built in identifier, $awaytime.
Could use a bit of work, and maybe a dialog if you are into those.
@ mountaindew\'s code, You don\'t really need to specify if $2 is in the channel. It will still add to mIRC\'s internal list.
@ the original code and the author, You are not really checking the address and if $2 is specified. That could receive a pretty big error. You also neglect features such as a delete option or an edit option. Interesting idea, but the coding isn\'t quite complete.
This snippet seems to be divided in three different sections. If you wanted to give a user a voice and a greet, you could. There is an auto-act section and an auto-greet section. So you could technically do what you are asking. This snippet isn\'t all to great. You might as well use hash tables for all the data. And why create a separate text file just for the use of dialog? I think $ini would work for that, I\'m not too sure, but it should. /help $ini. There are a few error checking bits you are missing. In your add nick alias, you forget to include an if ($1 && $2) to check if the user actually typed the strings. If I forgot to add the second, it would add it to the text & ini file. You also forget to check if the dialog name is in use when you type the command to open the dialog. Try adding an if ($dialog(nicksview)). And how about adding an edit option? It seems a bit of work to delete and then type the parameters. Nice concept, but not really good coding.
--Roy
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.