changeset 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 dbe025b03eba
children 981e2abbb56c
files src/plugins/plugin_xep_0045.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)