diff plugins/plugin_xep_0045.py @ 73:9d113b5471e6

Dynamic signal addition in bridge - DBus: new addSignal method - plugins XEP-0045: roomJoined is now a dynamically added signal
author Goffi <goffi@goffi.org>
date Mon, 22 Mar 2010 14:21:57 +1100
parents f271fff3a713
children 6e3a06b4dd36
line wrap: on
line diff
--- a/plugins/plugin_xep_0045.py	Sun Mar 21 10:28:55 2010 +1100
+++ b/plugins/plugin_xep_0045.py	Mon Mar 22 14:21:57 2010 +1100
@@ -69,6 +69,7 @@
         self.host = host
         self.clients={}
         host.bridge.addMethod("joinMUC", ".communication", in_sign='ssss', out_sign='', method=self.join)
+        host.bridge.addSignal("roomJoined", ".communication", signature='ssasss') #args: room_id, room_service, room_nicks, user_nick, profile
 
     def __check_profile(self, profile):
         if not profile or not self.clients.has_key(profile) or not self.host.isConnected(profile):