# HG changeset patch # User Goffi # Date 1426772475 -3600 # Node ID 6d0e018098937b4f7dd62be440f518baf4576c43 # Parent 85caf0a3abb3d1eb3e676dbd4a9a1aa278609a62 plugin text commands: minor docstrings improvments diff -r 85caf0a3abb3 -r 6d0e01809893 src/plugins/plugin_xep_0048.py --- a/src/plugins/plugin_xep_0048.py Thu Mar 19 14:38:02 2015 +0100 +++ b/src/plugins/plugin_xep_0048.py Thu Mar 19 14:41:15 2015 +0100 @@ -422,6 +422,7 @@ @command (group): [autojoin | remove] - autojoin: join room automatically on connection + - remove: remove bookmark(s) for this room """ client = self.host.getClient(profile) txt_cmd = self.host.plugins[C.TEXT_CMDS] diff -r 85caf0a3abb3 -r 6d0e01809893 src/plugins/plugin_xep_0249.py --- a/src/plugins/plugin_xep_0249.py Thu Mar 19 14:38:02 2015 +0100 +++ b/src/plugins/plugin_xep_0249.py Thu Mar 19 14:41:15 2015 +0100 @@ -168,15 +168,15 @@ def cmd_invite(self, mess_data, profile): """invite someone in the room - @command (group): (JID) + @command (group): JID - JID: the JID of the person to invite """ jid_s = mess_data["unparsed"].strip() try: - assert(jid_s) + assert jid_s jid_ = jid.JID(jid_s) - assert(jid_.user) - assert(jid_.host) + assert jid_.user + assert jid_.host except (jid.InvalidFormat, AssertionError): feedback = _(u"You must provide a valid JID to invite, like in '/invite contact@example.net'") self.host.plugins[C.TEXT_CMDS].feedBack(feedback, mess_data, profile)