Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ trigger help, and regexp issues.

trigger help, and regexp issues.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Acton   (13 posts)  Bio
Date Thu 26 Jun 2008 09:52 PM (UTC)
Message
Hello,
I've got a question, and actually there are two but they're almost the same thing.
First, I'm working on ignoring someone on a mud--perma ignores haven't been implimented.
What I've done, is done something like: *[INFO] bla* and then just sent ignore bla, but I'd only like to ignore them if they go ld, connect, or log off.
Also, I'm really confused on how regexp works. I get the range thing, [a-c] and some others, but I'm not really able to apply it to something I need.
I'm using php, which wasn't recommended, but it's what I know efficiently enough to use. I'm going to try to make databases of info, etc, and am trying to work up to that point.
Help would be awesome, and thanks.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 27 Jun 2008 05:08 AM (UTC)
Message
You shouldn't need to use PHP or any scripting to do a simple ignore trigger. Please copy and paste your trigger so I can see what you are doing.

Use this method: http://mushclient.com/copying



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Acton   (13 posts)  Bio
Date Reply #2 on Fri 27 Jun 2008 05:18 AM (UTC)
Message
Hello,
There are two triggers in question
The first is this:
When someone logs on, I have them autoignored but they are using a bot to get their messages through. Zoal and lotsapoon are both mine, which I'm using for testing.
Here's the trigger:
^Riel chats\, \'(Zoal)|(Lotsapoon) was last seen (.*?)$
basically, I want to just be able to add names to that list, and get it to trigger on those.
Second is this:
^symon tells you\, \'\:(.*?)\: findzoal\.\'$
basically, the name between the : is a code that I'm using so not everyone can send me findzoal.
Thanks,
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Fri 27 Jun 2008 07:23 AM (UTC)
Message
Use this method: http://mushclient.com/copying


Also please post some example output.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,088 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.