to save room in your script files, and not have to have as many loaded, you can also use variables or even ini files to store your settings, such as, if you want a profanity kick running in a room, you can set a variable like %pkick. [ $+ [ $right($chan,-2) ] ] and that way you don't have to have a whole different on *:text:*:#: event in a #group in another file,you can just have it all in one event, and the profanity kick only activates IF (%pkick. [ $+ [ $right($chan,-2) ] ] != $null)
then for popups, you can put a single line,
.$iif(%pkick. [ $+ [ $right($chan,-2) ] ] != $null,$style(1)) $+ Profanity kick:{ if (%pkick. [ $+ [ $right($chan,-2) ] ] != $null) { unset %pkick. [ $+ [ $right($chan,-2) ] ] | echo -a * profanity kick off } | else { set %pkick. [ $+ [ $right($chan,-2) ] ] 1 | echo -a * profanity kick on } } which puts a check mark next to the option in popups if it's on, and no check mark if it's off, then clicking it turns it on or off.
*edit: another benefit of doing it this way is that it's more dynamic than using #groups and it allows you to have the option on in one room but off in other rooms.
..and that's that. sorry if i made it sound all complicated.. just a suggestion.
Edited Jun 20, 2004 7:31 PM by vexation