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 ➜ Tips and tricks ➜ Multiple aliases in one - OR ALIAS?

Multiple aliases in one - OR ALIAS?

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


Posted by ErockMahan   (81 posts)  Bio
Date Thu 05 Jul 2007 10:30 PM (UTC)
Message
I know someone with two characters. They are named Bob and Doug (not really, but this is an example). I have a bad memory, so I write two aliases. One that does this:

match="whois bob"
<send>whois bob
whois doug</send>

Very simple and straightforward. Then, on one of my better days, I create the inverse of that:

match="whois doug"
<send>whois doug
whois bob</send>

That way I can remember either one of the two, and look up who both his characters are.

Being as popular as I am (who doesn't love a good healer?) I'm getting lots of friends with lots of characters, and keeping this many aliases is becoming cumbersome.

Is there any way I can do something like this:

match="whois doug|bob"
<send>whois doug
whois bob</send>
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 06 Jul 2007 02:28 AM (UTC)
Message
Check the "regular expression" box for the alias. Then change the match text to:


match="^whois (doug|bob)$"

- 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.


10,411 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.