Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0045.py @ 1992:d5befe7253aa
plugin XEP-0045: fixed typo in text commands
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 02 Jul 2016 20:55:31 +0200 |
parents | dfbe0bb056dc |
children | 6c51e8f17c92 |
comparison
equal
deleted
inserted
replaced
1991:dbe025b03eba | 1992:d5befe7253aa |
---|---|
83 host.bridge.addSignal("mucRoomNewSubject", ".plugin", signature='sss') # args: room_jid, subject, profile | 83 host.bridge.addSignal("mucRoomNewSubject", ".plugin", signature='sss') # args: room_jid, subject, profile |
84 self.__submit_conf_id = host.registerCallback(self._submitConfiguration, with_data=True) | 84 self.__submit_conf_id = host.registerCallback(self._submitConfiguration, with_data=True) |
85 self._room_join_id = host.registerCallback(self._UIRoomJoinCb, with_data=True) | 85 self._room_join_id = host.registerCallback(self._UIRoomJoinCb, with_data=True) |
86 host.importMenu((D_("MUC"), D_("configure")), self._configureRoomMenu, security_limit=0, help_string=D_("Configure Multi-User Chat room"), type_=C.MENU_ROOM) | 86 host.importMenu((D_("MUC"), D_("configure")), self._configureRoomMenu, security_limit=0, help_string=D_("Configure Multi-User Chat room"), type_=C.MENU_ROOM) |
87 try: | 87 try: |
88 self.txt_cmds = self.host.plugins[C.TEXT_CMDS] | 88 self.text_cmds = self.host.plugins[C.TEXT_CMDS] |
89 except KeyError: | 89 except KeyError: |
90 log.info(_(u"Text commands not available")) | 90 log.info(_(u"Text commands not available")) |
91 else: | 91 else: |
92 self.txt_cmds.registerTextCommands(self) | 92 self.text_cmds.registerTextCommands(self) |
93 self.txt_cmds.addWhoIsCb(self._whois, 100) | 93 self.text_cmds.addWhoIsCb(self._whois, 100) |
94 | 94 |
95 host.trigger.add("presence_available", self.presenceTrigger) | 95 host.trigger.add("presence_available", self.presenceTrigger) |
96 host.trigger.add("MessageReceived", self.MessageReceivedTrigger, priority=1000000) | 96 host.trigger.add("MessageReceived", self.MessageReceivedTrigger, priority=1000000) |
97 | 97 |
98 def profileConnected(self, profile): | 98 def profileConnected(self, profile): |