Home User Guide Dll PLugins MudMaster Chat Redirect
11 | 12 | 2017
MudMaster Chat Redirect

Here is a dll which will redirect all activity on your MudMaster chat to the session window listed in a variable called ChatWindow. By default when this dll is loaded it creates the variable and loads it with ChannelViewer.mms. You can change the variable ChatWindow to redirect chat to a different window.

By default chat will be shown in both the window you are chatting in and the viewer window. You can change this by calling the setChatLineRedirectOnly command and setting it to true.

By default this dll removes extra leading newlines from the chat directed to the viewer window. This can be changed by calling the removeLeadingNewline command and setting it to false.

By default script in the viewer window is applied to the chat redirected there. Use the command setShowOtherTriggers {false} to Not process script on chat in other window.

Call the command help be reminded of the dll commands available

In addition to redirecting the chat to the other window the last chat will be stored in the $ChatWindowLastChat variable in case you would like to use that in script. As well every time the chat is rediected to the other window an alias called DoChatWindowCommand will be called if it exists.

 

ChatWindow.dll version 0.6 and newer reads the comma separated list of regular expressions to match
non chat lines you want sent to the Channel view session window. This can be updated by
editing this file and then entering reloadchanneltags in the input line.
As you can see by the example above you can match ANSI colour commands in addition to plain
text as long as the special characters are appropriately escaped with \. The dll is looking
for a complete match so your regular expression may have to start and end with .* to work.

ChatWindow.dll version 0.6 and newer reads the ChannelTags.ini file for a comma separated list of regular expressions to match non chat lines you want sent to the Channel view session window. This can be updated by editing this file and then entering reloadchanneltags in the input line.

For example

ChannelIDText=.\[32m\[.\[1m.\[33mCLAN.\[1m.\[32m\],.\[33m.* chats '.*

As you can see by the example above you can match ANSI colour commands in addition to plain text as long as the special characters are appropriately escaped with \. The dll is looking for a complete match so your regular expression may have to start and end with .* to work.

 

Examples

Load chat dll and name it Chatter:
/loadlib Chatter ChatWindow.dll

Tell it to not strip the leading newlines in the viewer window:
/calldll Chatter removeLeadingNewline {false}

Set the dll to not apply script to the chat sent to the viewer window:
/call dll Chatter setShowOtherTriggers {false}

Change which session window the chat is directed to myChatViewer.mms:
/var {ChatWindow}{myChatViewer.mms}{chatStuff}

Download this ChatWindow.dll and put it in the folder where your MudMaster.exe is.