--- a/rollbot.py Wed Apr 04 00:25:23 2018 +0800
+++ b/rollbot.py Wed Apr 04 00:25:43 2018 +0800
mbody = mbody.lstrip(':, ')
rbody, rxbody = self.respond(mbody)
- rbody = '%s: %s' % (msg['mucnick'], rbody)
- rxbody = '%s: %s' % (cgi.escape(msg['mucnick']), rxbody)
+ if not rbody.startswith('/me '):
+ rbody = '%s: %s' % (msg['mucnick'], rbody)
+ rxbody = '%s: %s' % (cgi.escape(msg['mucnick']), rxbody)