# HG changeset patch # User souliane # Date 1405441596 -7200 # Node ID ad4ec8d9235eae4199a00454b04767e55e84f63a # Parent 2be46f391cfaef84d065d92ca727a90587a1fed9 plugin XEP-0045: change security limit of "config room" menu to 4 diff -r 2be46f391cfa -r ad4ec8d9235e src/plugins/plugin_xep_0045.py --- a/src/plugins/plugin_xep_0045.py Tue Jul 15 13:37:50 2014 +0200 +++ b/src/plugins/plugin_xep_0045.py Tue Jul 15 18:26:36 2014 +0200 @@ -78,7 +78,7 @@ host.bridge.addSignal("roomUserChangedNick", ".plugin", signature='ssss') # args: room_jid, old_nick, new_nick, profile host.bridge.addSignal("roomNewSubject", ".plugin", signature='sss') # args: room_jid, subject, profile self.__submit_conf_id = host.registerCallback(self._submitConfiguration, with_data=True) - host.importMenu((D_("MUC"), D_("configure")), self._configureRoomMenu, help_string=D_("Configure Multi-User Chat room"), type_=C.MENU_ROOM) + host.importMenu((D_("MUC"), D_("configure")), self._configureRoomMenu, security_limit=4, help_string=D_("Configure Multi-User Chat room"), type_=C.MENU_ROOM) try: self.host.plugins[C.TEXT_CMDS].registerTextCommands(self) self.host.plugins[C.TEXT_CMDS].addWhoIsCb(self._whois, 100)