summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-21 08:46:06 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-21 08:46:06 +0000
commit17368d3d417b294feb44a843acf1e1d92afecb31 (patch)
treee6101ac2159b1d7746c25c7a56b04e7dd9f73a20 /src
parenta46991ea5427aff5b96a79e8cd5fd513f23d7ff2 (diff)
downloadpoezio-17368d3d417b294feb44a843acf1e1d92afecb31.tar.gz
poezio-17368d3d417b294feb44a843acf1e1d92afecb31.tar.bz2
poezio-17368d3d417b294feb44a843acf1e1d92afecb31.tar.xz
poezio-17368d3d417b294feb44a843acf1e1d92afecb31.zip
/unqery. fixed #1529
Diffstat (limited to 'src')
-rw-r--r--src/gui.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui.py b/src/gui.py
index 7437e659..e51f9828 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -75,6 +75,7 @@ class Gui(object):
'avail': (self.command_avail, _("Usage: /avail [message]\nAvail: Sets your availability to available and (optional) sets your status message. This is equivalent to '/show available [message]'")),
'available': (self.command_avail, _("Usage: /available [message]\nAvailable: Sets your availability to available and (optional) sets your status message. This is equivalent to '/show available [message]'")),
'bookmark': (self.command_bookmark, _("Usage: /bookmark [roomname][/nick]\nBookmark: Bookmark the specified room (you will then auto-join it on each poezio start). This commands uses the same syntaxe as /join. Type /help join for syntaxe examples. Note that when typing \"/bookmark\" on its own, the room will be bookmarked with the nickname you\'re currently using in this room (instead of default_nick)")),
+ 'unquery': (self.command_unquery, _("Usage: /unquery\nClose the private conversation window")),
'set': (self.command_set, _("Usage: /set <option> [value]\nSet: Sets the value to the option in your configuration file. You can, for example, change your default nickname by doing `/set default_nick toto` or your resource with `/set resource blabla`. You can also set an empty value (nothing) by providing no [value] after <option>.")),
'kick': (self.command_kick, _("Usage: /kick <nick> [reason]\nKick: Kick the user with the specified nickname. You also can give an optional reason.")),
'topic': (self.command_topic, _("Usage: /topic <subject> \nTopic: Change the subject of the room")),
@@ -767,6 +768,15 @@ class Gui(object):
self.rooms.remove(self.current_room())
self.window.refresh(self.rooms)
+ def command_unquery(self, args):
+ """
+ /unquery
+ """
+ room = self.current_room()
+ if room.jid is not None:
+ self.rooms.remove(room)
+ self.window.refresh(self.rooms)
+
def command_query(self, args):
"""
/query