|
Goten4233 Newbie
Joined: 20 Mar 2003 Posts: 8
|
Posted: Thu Mar 20, 2003 5:34 am
Chat Gagging help - PLEASE |
Okay on my mud it's very simple
User chats 'Sentences'
I want to make an if statement to check if the person who chatted is one of my friends, and if not, gag the chat.
I tried making a variable and used the String List to set my friends.
I made the trigger like this.
The pattern is (%w) chats '(*)'
Then
#if {%1=@friend} {} {#gag}
But when it goes to check what is on friend it's like this for example.
Friend1|Friend2|Friend3|Friend4|etc.
So it doesn't check for each one separately...I would really like this solved if anyone knows why...please. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Thu Mar 20, 2003 6:20 am |
You are trying to check for list membership:
The pattern is (%w) chats '(*)'
Then
#IF (%ismember(%1,@friend)) {} {#GAG}
Ton Diening |
|
|
|
Goten4233 Newbie
Joined: 20 Mar 2003 Posts: 8
|
Posted: Thu Mar 20, 2003 9:53 pm |
Thank you so much. :)
|
|
|
|
|
|