diff --git a/src/mod_muc/mod_muc_log.erl b/src/mod_muc/mod_muc_log.erl
index cf4dd0117..2456c1324 100644
--- a/src/mod_muc/mod_muc_log.erl
+++ b/src/mod_muc/mod_muc_log.erl
@@ -415,11 +415,14 @@ add_message_to_log(Nick1, Message, RoomJID, Opts, State) ->
io_lib:format("~s~s~s
",
[Nick, ?T(" has set the subject to: "), htmlize(T,NoFollow,FileFormat)]);
{body, T} ->
- case regexp:first_match(T, "^/me\s") of
- {match, _, _} ->
+ case {regexp:first_match(T, "^/me\s"), Nick} of
+ {_, ""} ->
+ io_lib:format("~s
",
+ [htmlize(T,NoFollow,FileFormat)]);
+ {{match, _, _}, _} ->
io_lib:format("~s ~s
",
[Nick, string:substr(htmlize(T,FileFormat), 5)]);
- nomatch ->
+ {nomatch, _} ->
io_lib:format("~s ~s
",
[Nick2, htmlize(T,NoFollow,FileFormat)])
end
@@ -704,6 +707,7 @@ put_header_css(F, false) ->
fw(F, ".ts {color: #AAAAAA; text-decoration: none;}"),
fw(F, ".mrcm {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, ".ml {color: #009900; font-style: italic;}"),
fw(F, ".mk {color: #009900; font-style: italic;}"),