File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 47
47
<command name =" !password" level =" 4" echoChannelOnly =" true" />
48
48
<command name =" !gravity" level =" 3" echoChannelOnly =" true" />
49
49
<command name =" !weather" level =" 3" echoChannelOnly =" true" />
50
- <command name =" !server" level =" 0" echoChannelOnly =" false " />
51
- <command name =" !zone" level =" 0" echoChannelOnly =" false " />
52
- <command name =" !refreshall" level =" 4" echoChannelOnly =" false " />
53
- <command name =" !refresh" level =" 4" echoChannelOnly =" false " />
54
- <command name =" !checkmap" level =" 2" echoChannelOnly =" false " />
55
- <command name =" !country" level =" 2" echoChannelOnly =" false " />
50
+ <command name =" !server" level =" 0" echoChannelOnly =" true " />
51
+ <command name =" !zone" level =" 0" echoChannelOnly =" true " />
52
+ <command name =" !refreshall" level =" 4" echoChannelOnly =" true " />
53
+ <command name =" !refresh" level =" 4" echoChannelOnly =" true " />
54
+ <command name =" !checkmap" level =" 2" echoChannelOnly =" true " />
55
+ <command name =" !country" level =" 2" echoChannelOnly =" true " />
56
56
</acl >
Original file line number Diff line number Diff line change 72
72
desc=" Should all irc messages be sent to the server?"
73
73
/>
74
74
75
+ <!-- Should ingame messages be stripped from their colour codes for display on irc? -->
76
+ <setting
77
+ name=" *irc-stripcolourcodes"
78
+ value=" false"
79
+ friendlyname=" Strip colour codes"
80
+ examples=" true,false"
81
+ desc=" Should ingame messages be stripped from their colour codes for display on irc?"
82
+ />
83
+
75
84
<!-- Event logging -->
76
85
<setting name =" *irc-onResourceStart" value =" true" friendlyname =" output onResourceStart event" examples =" true,false" />
77
86
<setting name =" *irc-onResourceStop" value =" true" friendlyname =" output onResourceStop event" examples =" true,false" />
Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ function func_outputIRC (message)
127
127
end
128
128
return true
129
129
end
130
+ if get (" *irc-stripcolourcodes" ) == " true" then
131
+ message = string.gsub (message ," #%x%x%x%x%x%x" ," " )
132
+ end
130
133
for i ,channel in pairs (ircGetChannels ()) do
131
134
if ircIsEchoChannel (channel ) then
132
135
local server = getElementParent (channel )
You can’t perform that action at this time.
0 commit comments