# HG changeset patch # User Kim Alvefur # Date 1298247728 -3600 # Node ID 87ecc63241554490c2cacc6fedfd1253435a8349 # Parent dcb0eb6c32b6ccd98a23a022690c6ae3b463e2d6 plugins.groupchat: Don't prepend replies with the senders nickname if it's an action diff -r dcb0eb6c32b6 -r 87ecc6324155 plugins/groupchat.lua --- a/plugins/groupchat.lua Mon Feb 21 01:05:48 2011 +0100 +++ b/plugins/groupchat.lua Mon Feb 21 01:22:08 2011 +0100 @@ -47,7 +47,7 @@ if not reply then reply = "Nothing to say to you"; end if replied then return false; end replied = true; - if r.attr.type == "groupchat" then + if r.attr.type == "groupchat" and reply:sub(1,4) ~= "/me " then reply = event.sender.nick..": "..reply; end room:send(r:tag("body"):text(reply));