Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0045.py @ 596:98a962d0b23c
plugin XEP-0045: fixed mucLeave bridge method
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Jan 2013 00:30:00 +0100 |
parents | e629371a28d3 |
children | 8d8a2ad163e2 |
comparison
equal
deleted
inserted
replaced
595:1f160467f5de | 596:98a962d0b23c |
---|---|
57 info(_("Plugin XEP_0045 initialization")) | 57 info(_("Plugin XEP_0045 initialization")) |
58 self.host = host | 58 self.host = host |
59 self.clients = {} | 59 self.clients = {} |
60 host.bridge.addMethod("joinMUC", ".plugin", in_sign='ssa{ss}s', out_sign='', method=self._join) | 60 host.bridge.addMethod("joinMUC", ".plugin", in_sign='ssa{ss}s', out_sign='', method=self._join) |
61 host.bridge.addMethod("mucNick", ".plugin", in_sign='sss', out_sign='', method=self.mucNick) | 61 host.bridge.addMethod("mucNick", ".plugin", in_sign='sss', out_sign='', method=self.mucNick) |
62 host.bridge.addMethod("mucLeave", ".plugin", in_sign='ss', out_sign='', method=self.leave) | 62 host.bridge.addMethod("mucLeave", ".plugin", in_sign='ss', out_sign='', method=self.mucLeave, async = True) |
63 host.bridge.addMethod("getRoomsJoined", ".plugin", in_sign='s', out_sign='a(sass)', method=self.getRoomsJoined) | 63 host.bridge.addMethod("getRoomsJoined", ".plugin", in_sign='s', out_sign='a(sass)', method=self.getRoomsJoined) |
64 host.bridge.addMethod("getRoomsSubjects", ".plugin", in_sign='s', out_sign='a(ss)', method=self.getRoomsSubjects) | 64 host.bridge.addMethod("getRoomsSubjects", ".plugin", in_sign='s', out_sign='a(ss)', method=self.getRoomsSubjects) |
65 host.bridge.addMethod("getUniqueRoomName", ".plugin", in_sign='s', out_sign='s', method=self.getUniqueName) | 65 host.bridge.addMethod("getUniqueRoomName", ".plugin", in_sign='s', out_sign='s', method=self.getUniqueName) |
66 host.bridge.addSignal("roomJoined", ".plugin", signature='sasss') # args: room_jid, room_nicks, user_nick, profile | 66 host.bridge.addSignal("roomJoined", ".plugin", signature='sasss') # args: room_jid, room_nicks, user_nick, profile |
67 host.bridge.addSignal("roomLeft", ".plugin", signature='ss') # args: room_jid, profile | 67 host.bridge.addSignal("roomLeft", ".plugin", signature='ss') # args: room_jid, profile |