plugin XEP-0045: fixed typo in text commands

This commit is contained in:
Goffi 2016-07-02 20:55:31 +02:00
commit 79f1179723

View file

@ -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)