forked from mendaloth/a-few-random-aard-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAardwolf_Rsocial_Capture.xml
51 lines (45 loc) · 1.21 KB
/
Aardwolf_Rsocial_Capture.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
name="Aardwolf_Rsocial_Capture"
author="Mendaloth"
id="6332fad9bd93c3f6ce9ca16f"
language="Lua"
purpose="Sends Rsocials to Fiendish's chat log."
date_written="2008-10-15 07:35"
requires="4.30"
version="1.0"
save_state="y"
>
<description trim="y">
<![CDATA[
]]>
</description>
</plugin>
<triggers>
<trigger
enabled="y"
match="^\*.+$"
regexp="y"
omit_from_output="n"
script="Process_Rsocial_Line"
sequence="10"
>
</trigger>
</triggers>
<script>
<![CDATA[
-- functions for handling Aardwolf color codes
-- required to send color codes to Fiendish's Chat window
dofile(GetInfo (66) .. "\\worlds\\plugins\\" .. "aardwolf_colors.lua")
function Process_Rsocial_Line(_, _, _, styles)
-- Socials will always start with a dark cyan or bright magenta *
-- put this in to help cut down on non-socials ending up in the chat log...
if (styles[1].textcolour == GetNormalColour(7) or styles[1].textcolour == GetBoldColour(6)) then
CallPlugin("b555825a4a5700c35fa80780", "storeFromOutside", StylesToColoursOneLine(styles))
end
end
]]>
</script>
</muclient>