Dynamic signal addition in bridge

- DBus: new addSignal method
- plugins XEP-0045: roomJoined is now a dynamically added signal
This commit is contained in:
Goffi 2010-03-22 14:21:57 +11:00
commit af23265ee0

View file

@ -69,6 +69,7 @@ class XEP_0045():
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):