From 5bdbca688c6d57eef41de9d344d94305bb421536 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 13 May 2012 18:46:07 +0200 Subject: Use add_tab_command in the OTR plugin --- plugins/otr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/otr.py b/plugins/otr.py index b674c0fd..971b0059 100644 --- a/plugins/otr.py +++ b/plugins/otr.py @@ -16,7 +16,7 @@ class Plugin(BasePlugin): self.add_event_handler('conversation_say_after', self.on_conversation_say) self.add_event_handler('conversation_msg', self.on_conversation_msg) - self.add_command('otr', self.command_otr, "Usage: /otr \notr: Start or stop OTR for the current conversation", self.otr_completion) + self.add_tab_command(ConversationTab, 'otr', self.command_otr, "Usage: /otr \notr: Start or stop OTR for the current conversation", self.otr_completion) ConversationTab.add_information_element('otr', self.display_encryption_status) def cleanup(self): -- cgit v1.2.3