# HG changeset patch # User Charly COSTE # Date 1251896914 -7200 # Node ID fa291fd20480f391cbf2cff4f769400cef18586f # Parent 6c4b841144f6cfcef35235fcbe346a11f332b584 Handle /me the XMPP to IRC way Signed-off-by: Charly COSTE diff --git a/participant.py b/participant.py --- a/participant.py +++ b/participant.py @@ -149,7 +149,10 @@ class participant: try: if isinstance(self.irc_connection, ServerConnection): try: - self.irc_connection.privmsg(self.bridge.irc_room, message) + if message[:4] == '/me ': + self.irc_connection.action(self.bridge.irc_room, message[4:]) + else: + self.irc_connection.privmsg(self.bridge.irc_room, message) except ServerNotConnectedError: self.bridge.irc_connection.privmsg(self.bridge.irc_room, '<'+self.nickname+'> '+message) elif not isinstance(self.xmpp_c, xmpp.client.Client):