 |
donki1 Beginner
Joined: 02 Oct 2004 Posts: 12
|
Posted: Sat Oct 02, 2004 9:38 am
pattern match variable |
My trigger's pattern: ({@grouplist})%s
It works well if the variable isnt empty.
If the @grouplist variable is empty then the trigger works on everything.
What to do? Do i need to delete the variable/ disable trigger when i am not in group? |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Oct 02, 2004 10:30 am |
Just leave your name in the variable when you delete everyone else's and the variable will never be empty.
|
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
 |
donki1 Beginner
Joined: 02 Oct 2004 Posts: 12
|
Posted: Sat Oct 02, 2004 11:42 am |
Errm, any other solution?
I assigned a macro to every name in the grouplist except myself, also i use this var in a lots of triggers. All in all, i would like to put all names to the var, except myself. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Oct 02, 2004 4:41 pm |
Another solution is to disable the trigger when you don't have a group. Give the trigger an ID (Advanced tab in settings editor), then use #T+ and #T- to control it.
|
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
 |
|
|