Skip to content
Browse files

Fix #4

  • Loading branch information...
1 parent 1b774cd commit 1fcad9194080191a025a2f3e7c3d8e3ac8f36a52 @ermine committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/muc.ml
View
4 src/muc.ml
@@ -232,7 +232,9 @@ let make_msg ctx xmpp kind jid_from ?id ?response_tail response =
false, resp ^ tail
in
let body =
- if Pcre.pmatch ~pat:"/me" response || jid_from.resource = "" then respo
+ if (response = "/me" ||
+ (String.length response > 3 && String.sub response 0 4 = "/me ")) ||
+ jid_from.resource = "" then respo
else jid_from.resource ^ ": " ^ respo
in
let room_env = get_room_env ctx jid_from in

0 comments on commit 1fcad91

Please sign in to comment.
Something went wrong with that request. Please try again.