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)