So, there is a simple MUSHclient plugin, which highlights private messages.
If you have any ideas/suggestions feel free to say it. Also, I'm not very good in Regular Expressions so I'll appreciate any opmtimisation advice.
- Code: Select all
- <?xml version="1.0" encoding="US-ASCII"?>
 <!DOCTYPE muclient>
 <muclient>
 <plugin
 name="FSNoticeablePaging"
 author="Temarius"
 id="36e75e5c438fcd6f6c9f9949"
 language="Lua"
 purpose="Highlits page messages"
 date_written="2016-05-01 11:02:12"
 requires="3.46"
 version="1.0.1"
 >
 <description trim="y">
 <![CDATA[
 Highlits page messages.
 ]]>
 </description>
 </plugin>
 <!-- Triggers -->
 <triggers>
 <trigger
 enabled="y"
 ignore_case="y"
 omit_from_output="y"
 match='^(?:(\S+ page(?:,|s,|-mail|-pose,) ")(.*?)(" to \S+)|(In a page-pose to you, )(.*))$'
 regexp="y"
 script="highlightPaging"
 sequence="60"
 >
 </trigger>
 </triggers>
 <!-- Script -->
 <script>
 <![CDATA[
 function highlightPaging (name, line, wildcards, styles)
 if wildcards[1] ~= "" then
 world.ColourTell ("magenta", "", wildcards[1])
 world.ColourTell ("magenta", "", wildcards[2])
 world.ColourNote ("magenta", "", wildcards[3])
 else
 world.ColourTell ("magenta", "", wildcards[4])
 world.ColourNote ("yellow", "", wildcards[5])
 end
 end
 ]]>
 </script>
 </muclient>

