From 79f11797232e3284eae01cec46d36981b7e1085a Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 2 Jul 2016 20:55:31 +0200 Subject: [PATCH] plugin XEP-0045: fixed typo in text commands --- src/plugins/plugin_xep_0045.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/plugin_xep_0045.py b/src/plugins/plugin_xep_0045.py index d173e0c6..c7870eaf 100755 --- a/src/plugins/plugin_xep_0045.py +++ b/src/plugins/plugin_xep_0045.py @@ -85,12 +85,12 @@ class XEP_0045(object): 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)