# HG changeset patch # User Goffi # Date 1467485731 -7200 # Node ID d5befe7253aab7a829647aaf26a93d2c9d6bd7ba # Parent dbe025b03ebad08706c7183b08ad0852d2fae08d plugin XEP-0045: fixed typo in text commands diff -r dbe025b03eba -r d5befe7253aa src/plugins/plugin_xep_0045.py --- a/src/plugins/plugin_xep_0045.py Fri Jul 01 00:02:28 2016 +0200 +++ b/src/plugins/plugin_xep_0045.py Sat Jul 02 20:55:31 2016 +0200 @@ -85,12 +85,12 @@ self._room_join_id = host.registerCallback(self._UIRoomJoinCb, with_data=True) host.importMenu((D_("MUC"), D_("configure")), self._configureRoomMenu, security_limit=0, help_string=D_("Configure Multi-User Chat room"), type_=C.MENU_ROOM) try: - self.txt_cmds = self.host.plugins[C.TEXT_CMDS] + self.text_cmds = self.host.plugins[C.TEXT_CMDS] except KeyError: log.info(_(u"Text commands not available")) else: - self.txt_cmds.registerTextCommands(self) - self.txt_cmds.addWhoIsCb(self._whois, 100) + self.text_cmds.registerTextCommands(self) + self.text_cmds.addWhoIsCb(self._whois, 100) host.trigger.add("presence_available", self.presenceTrigger) host.trigger.add("MessageReceived", self.MessageReceivedTrigger, priority=1000000)