summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-14 17:04:50 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-14 17:04:50 +0000
commit25e82efebfe97b3efc6366bf32eaf7282c69bc39 (patch)
tree9282e782b21e18426f456aaaf3ae0731511c4180 /src/gui.py
parent8e19b848fb883e38b045eabb298d2d4a2dd7e5c7 (diff)
downloadpoezio-25e82efebfe97b3efc6366bf32eaf7282c69bc39.tar.gz
poezio-25e82efebfe97b3efc6366bf32eaf7282c69bc39.tar.bz2
poezio-25e82efebfe97b3efc6366bf32eaf7282c69bc39.tar.xz
poezio-25e82efebfe97b3efc6366bf32eaf7282c69bc39.zip
Verbose result for /bookmark command. fixed #1614
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui.py b/src/gui.py
index 543029ec..4e05d5d7 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -665,13 +665,13 @@ class Gui(object):
if is_jid(self.current_room().name):
room += '@%s' % jid_get_domain(self.current_room().name)
else: # no server could be found, print a message and return
- self.information(_("You didn't specify a server for the room you want to join"))
+ self.add_message_to_room(self.current_room(), _("You didn't specify a server for the room you want to join"))
return
r = self.get_room_by_name(room)
if len(args) == 2: # a password is provided
password = args[1]
if r and r.joined: # if we are already in the room
- self.information(_("already in room [%s]") % room)
+ self.add_message_to_room(self.current_room(), _("already in room [%s]") % room)
return
self.muc.join_room(room, nick, password)
if not r: # if the room window exists, we don't recreate it.
@@ -713,7 +713,9 @@ class Gui(object):
bookmarked.remove(room)
break
bookmarked = ':'.join(bookmarked)
- config.set_and_save('rooms', bookmarked+':'+res)
+ bookmarks = bookmarked+':'+res
+ config.set_and_save('rooms', bookmarks)
+ self.add_message_to_room(self.current_room(), _('Your bookmarks are now: %s') % bookmarks)
def command_set(self, args):
"""