Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0045.py @ 1101:ad4ec8d9235e
plugin XEP-0045: change security limit of "config room" menu to 4
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 15 Jul 2014 18:26:36 +0200 |
parents | 4286a19e9e8a |
children | 3158f9e08760 |
comparison
equal
deleted
inserted
replaced
1100:2be46f391cfa | 1101:ad4ec8d9235e |
---|---|
76 host.bridge.addSignal("roomUserJoined", ".plugin", signature='ssa{ss}s') # args: room_jid, user_nick, user_data, profile | 76 host.bridge.addSignal("roomUserJoined", ".plugin", signature='ssa{ss}s') # args: room_jid, user_nick, user_data, profile |
77 host.bridge.addSignal("roomUserLeft", ".plugin", signature='ssa{ss}s') # args: room_jid, user_nick, user_data, profile | 77 host.bridge.addSignal("roomUserLeft", ".plugin", signature='ssa{ss}s') # args: room_jid, user_nick, user_data, profile |
78 host.bridge.addSignal("roomUserChangedNick", ".plugin", signature='ssss') # args: room_jid, old_nick, new_nick, profile | 78 host.bridge.addSignal("roomUserChangedNick", ".plugin", signature='ssss') # args: room_jid, old_nick, new_nick, profile |
79 host.bridge.addSignal("roomNewSubject", ".plugin", signature='sss') # args: room_jid, subject, profile | 79 host.bridge.addSignal("roomNewSubject", ".plugin", signature='sss') # args: room_jid, subject, profile |
80 self.__submit_conf_id = host.registerCallback(self._submitConfiguration, with_data=True) | 80 self.__submit_conf_id = host.registerCallback(self._submitConfiguration, with_data=True) |
81 host.importMenu((D_("MUC"), D_("configure")), self._configureRoomMenu, help_string=D_("Configure Multi-User Chat room"), type_=C.MENU_ROOM) | 81 host.importMenu((D_("MUC"), D_("configure")), self._configureRoomMenu, security_limit=4, help_string=D_("Configure Multi-User Chat room"), type_=C.MENU_ROOM) |
82 try: | 82 try: |
83 self.host.plugins[C.TEXT_CMDS].registerTextCommands(self) | 83 self.host.plugins[C.TEXT_CMDS].registerTextCommands(self) |
84 self.host.plugins[C.TEXT_CMDS].addWhoIsCb(self._whois, 100) | 84 self.host.plugins[C.TEXT_CMDS].addWhoIsCb(self._whois, 100) |
85 except KeyError: | 85 except KeyError: |
86 log.info(_("Text commands not available")) | 86 log.info(_("Text commands not available")) |