summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-08-04 15:36:29 +0200
committermathieui <mathieui@mathieui.net>2013-08-04 15:36:29 +0200
commitbd81ef5cf309cc82a4b8aaee397e68d1bce8a260 (patch)
tree6fc939dfdf77390ac666986d1310d771b886ea06 /plugins
parenta8762b47461f4742bdcefd3307498b904e7a39f2 (diff)
downloadpoezio-bd81ef5cf309cc82a4b8aaee397e68d1bce8a260.tar.gz
poezio-bd81ef5cf309cc82a4b8aaee397e68d1bce8a260.tar.bz2
poezio-bd81ef5cf309cc82a4b8aaee397e68d1bce8a260.tar.xz
poezio-bd81ef5cf309cc82a4b8aaee397e68d1bce8a260.zip
Add a helpful help for /otr
Diffstat (limited to 'plugins')
-rw-r--r--plugins/otr.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index bf7185a4..1d49b7ea 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -165,7 +165,6 @@ class PoezioAccount(Account):
log.error('Error in load_privkey', exc_info=True)
def save_privkey(self):
- log.error('coucou')
try:
with open(self.key_dir + '.key3', 'xb') as keyfile:
keyfile.write(self.getPrivkey().serializePrivateKey())
@@ -215,11 +214,20 @@ class Plugin(BasePlugin):
PrivateTab.add_information_element('otr', self.display_encryption_status)
self.account = PoezioAccount(self.core.xmpp.boundjid.bare, OTR_DIR)
self.contexts = {}
+ usage = '[start|refresh|end|fpr|ourfpr]'
+ shortdesc = 'Manage an OTR conversation'
+ desc = ('Manage an OTR conversation. Use “/otr start” to start a converation,'
+ ' “/otr end” to end it, “/otr fpr” to show the fingerprint of your '
+ 'contact, and “/otr ourfpr” to show your fingerprint.')
self.api.add_tab_command(ConversationTab, 'otr', self.command_otr,
- help='coucou',
+ help=desc,
+ usage=usage,
+ short=shortdesc,
completion=self.completion_otr)
self.api.add_tab_command(PrivateTab, 'otr', self.command_otr,
- help='coucou',
+ help=desc,
+ usage=usage,
+ short=shortdesc,
completion=self.completion_otr)
def cleanup(self):