diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2010-10-19 00:05:41 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2010-10-19 00:05:41 +0400 |
commit | e4ff7c6ced889fd79e3cd9fdc32fa0b31444687c (patch) | |
tree | e9b49ad2cf6667abfee1f941fb22bd071b613c4e /src/remote_control.py | |
parent | 3dd4a74df1f21d53cc259226ed0ebd319b72f06a (diff) |
use NEC to handle messages / gc_messages
Diffstat (limited to 'src/remote_control.py')
-rw-r--r-- | src/remote_control.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/remote_control.py b/src/remote_control.py index d3b5e7011..9daaefe0b 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -123,6 +123,8 @@ class Remote: ged.POSTGUI, self.on_subscribed_presence_received) gajim.ged.register_event_handler('unsubscribed-presence-received', ged.POSTGUI, self.on_unsubscribed_presence_received) + gajim.ged.register_event_handler('gc-message-received', + ged.POSTGUI, self.on_gc_message_received) def on_last_status_time(self, obj): self.raise_signal('LastStatusTime', (obj.conn.name, [ @@ -168,6 +170,11 @@ class Remote: def on_unsubscribed_presence_received(self, obj): self.raise_signal('Unsubscribed', (obj.conn.name, obj.jid)) + def on_gc_message_received(self, obj): + self.raise_signal('GCMessage', (obj.conn.name, [obj.fjid, obj.msgtxt, + obj.timestamp, obj.has_timestamp, obj.xhtml_msgtxt, obj.status_code, + obj.displaymarking, obj.captcha_form, obj.needs_highlight) + def raise_signal(self, signal, arg): if self.signal_object: try: |