mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Display room service messages in distintive blue colour.
SVN Revision: 2492
This commit is contained in:
parent
0175932d86
commit
a9ce2fc38a
@ -415,11 +415,14 @@ add_message_to_log(Nick1, Message, RoomJID, Opts, State) ->
|
|||||||
io_lib:format("<font class=\"msc\">~s~s~s</font><br/>",
|
io_lib:format("<font class=\"msc\">~s~s~s</font><br/>",
|
||||||
[Nick, ?T(" has set the subject to: "), htmlize(T,NoFollow,FileFormat)]);
|
[Nick, ?T(" has set the subject to: "), htmlize(T,NoFollow,FileFormat)]);
|
||||||
{body, T} ->
|
{body, T} ->
|
||||||
case regexp:first_match(T, "^/me\s") of
|
case {regexp:first_match(T, "^/me\s"), Nick} of
|
||||||
{match, _, _} ->
|
{_, ""} ->
|
||||||
|
io_lib:format("<font class=\"msm\">~s</font><br/>",
|
||||||
|
[htmlize(T,NoFollow,FileFormat)]);
|
||||||
|
{{match, _, _}, _} ->
|
||||||
io_lib:format("<font class=\"mne\">~s ~s</font><br/>",
|
io_lib:format("<font class=\"mne\">~s ~s</font><br/>",
|
||||||
[Nick, string:substr(htmlize(T,FileFormat), 5)]);
|
[Nick, string:substr(htmlize(T,FileFormat), 5)]);
|
||||||
nomatch ->
|
{nomatch, _} ->
|
||||||
io_lib:format("<font class=\"mn\">~s</font> ~s<br/>",
|
io_lib:format("<font class=\"mn\">~s</font> ~s<br/>",
|
||||||
[Nick2, htmlize(T,NoFollow,FileFormat)])
|
[Nick2, htmlize(T,NoFollow,FileFormat)])
|
||||||
end
|
end
|
||||||
@ -704,6 +707,7 @@ put_header_css(F, false) ->
|
|||||||
fw(F, ".ts {color: #AAAAAA; text-decoration: none;}"),
|
fw(F, ".ts {color: #AAAAAA; text-decoration: none;}"),
|
||||||
fw(F, ".mrcm {color: #009900; font-style: italic; font-weight: bold;}"),
|
fw(F, ".mrcm {color: #009900; font-style: italic; font-weight: bold;}"),
|
||||||
fw(F, ".msc {color: #009900; font-style: italic; font-weight: bold;}"),
|
fw(F, ".msc {color: #009900; font-style: italic; font-weight: bold;}"),
|
||||||
|
fw(F, ".msm {color: #000099; font-style: italic; font-weight: bold;}"),
|
||||||
fw(F, ".mj {color: #009900; font-style: italic;}"),
|
fw(F, ".mj {color: #009900; font-style: italic;}"),
|
||||||
fw(F, ".ml {color: #009900; font-style: italic;}"),
|
fw(F, ".ml {color: #009900; font-style: italic;}"),
|
||||||
fw(F, ".mk {color: #009900; font-style: italic;}"),
|
fw(F, ".mk {color: #009900; font-style: italic;}"),
|
||||||
|
Loading…
Reference in New Issue
Block a user