Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0249.py @ 372:f964dcec1611
core: plugins refactored according to bridge + updatedValue now use profile
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 06 Jul 2011 01:06:18 +0200 |
parents | f1f7c94278f2 |
children | 60a9086b35c5 |
comparison
equal
deleted
inserted
replaced
371:3ea41a199b36 | 372:f964dcec1611 |
---|---|
52 class XEP_0249(): | 52 class XEP_0249(): |
53 | 53 |
54 def __init__(self, host): | 54 def __init__(self, host): |
55 info(_("Plugin XEP_0249 initialization")) | 55 info(_("Plugin XEP_0249 initialization")) |
56 self.host = host | 56 self.host = host |
57 host.bridge.addMethod("inviteMUC", ".communication", in_sign='sssa{ss}s', out_sign='', method=self._invite) | 57 host.bridge.addMethod("inviteMUC", ".plugin", in_sign='sssa{ss}s', out_sign='', method=self._invite) |
58 | 58 |
59 def getHandler(self, profile): | 59 def getHandler(self, profile): |
60 return XEP_0249_handler(self) | 60 return XEP_0249_handler(self) |
61 | 61 |
62 def invite(self, target, room, options={}, profile_key='@DEFAULT@'): | 62 def invite(self, target, room, options={}, profile_key='@DEFAULT@'): |