changeset 73:fa291fd20480

Handle /me the XMPP to IRC way Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Wed, 02 Sep 2009 15:08:34 +0200
parents 6c4b841144f6
children 676c2d2bf240
files participant.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):