summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-13 18:46:07 +0200
committermathieui <mathieui@mathieui.net>2012-05-13 18:46:07 +0200
commit5bdbca688c6d57eef41de9d344d94305bb421536 (patch)
treea76e40acf15076a8231a110dd05255f3a39da0ba /plugins
parentd949a379a3aa353b6f1f7c48e92ac8cefaca60fc (diff)
downloadpoezio-5bdbca688c6d57eef41de9d344d94305bb421536.tar.gz
poezio-5bdbca688c6d57eef41de9d344d94305bb421536.tar.bz2
poezio-5bdbca688c6d57eef41de9d344d94305bb421536.tar.xz
poezio-5bdbca688c6d57eef41de9d344d94305bb421536.zip
Use add_tab_command in the OTR plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/otr.py2
1 files changed, 1 insertions, 1 deletions
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 <start|end>\notr: Start or stop OTR for the current conversation", self.otr_completion)
+ self.add_tab_command(ConversationTab, 'otr', self.command_otr, "Usage: /otr <start|end>\notr: Start or stop OTR for the current conversation", self.otr_completion)
ConversationTab.add_information_element('otr', self.display_encryption_status)
def cleanup(self):