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 ➜ Blank Lines on Text Gags

Blank Lines on Text Gags

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


Posted by Rojan QDel   USA  (9 posts)  Bio
Date Thu 19 Jun 2008 05:26 PM (UTC)
Message
I have a trigger that matches on *PlayerName*. All it does is omit from output... But even though whatever that person says IS omitted, I still get a blank line. Is there any way NOT to get the blank line?
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 19 Jun 2008 08:27 PM (UTC)
Message
Is the blank line perhaps caused by a prompt which follows the tell from the annoying player?

I have been using this trigger to omit all blank lines:


<triggers>
  <trigger
   enabled="y"
   match="^$"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >
  </trigger>
</triggers>


Make sure in File -> Global Preferences -> General that "Regular Expressions an match on an empty string" is checked.



- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #2 on Thu 10 Jul 2008 06:10 AM (UTC)
Message
A bit of investigation has revealed that some MUDs deliberately send a second blank line after a chat. In other words, if someone chats "hello" you see:

Someone says, hello \n
\n


Where the \n represents a newline. The trigger omits the chatted line, but it can't do much about the second blank line on its own.

The method suggested above will omit the extra blank line. I have made it a plugin, see:

http://www.gammon.com.au/forum/?id=8768

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


13,215 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.