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
➜ Plugins
➜ Window plugin problem
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kazu
(3 posts) Bio
|
Date
| Mon 23 Jan 2012 11:10 PM (UTC) Amended on Mon 23 Jan 2012 11:16 PM (UTC) by Kazu
|
Message
| So I'm trying to set up a window to pull a certain channel of chat to a blank world set up beside my main one using Nick's chat redirect plugin, but I keep getting an error on the line with the regex line. Here's the trigger portion where they are.
<triggers>
<trigger
enabled="y"
match="^\(Party\)\: (.+?) says\, \"(.*?)\"$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\(Party\)\: You say\, \"(.*?)\"$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
</triggers>
It's supposed to match:
(Party): Person says, "something"
(Party): You say, "something"
If anyone could point out what I'm doing wrong, I will be very appreciative. | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #1 on Tue 24 Jan 2012 04:51 PM (UTC) Amended on Tue 24 Jan 2012 04:54 PM (UTC) by Twisol
|
Message
| You should use " instead of a literal ". If you look at the XML, you have match="<stuff>", right? The content is between two double-quotes. But if you add a double-quote inside, it thinks that's where the content ends (i.e. match="foo"bar"). So XML provides a special sequence that lets you embed a double-quote (and other characters) without mucking up the syntax, and that's " . (Begins with the &, ends with a ;, don't include that period.)
"^\(Party\): (.+?) says, "(.*?)"$"
"^\(Party\): You say, "(.*?)"$"
I should mention that this only applies if you're tinkering with the XML format yourself. When you use the trigger/alias dialog from within MUSHclient, you don't have to worry about this. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | 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.
11,891 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top