From e3e1065e49b8cb533832e73d00d41c9f9f34c822 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 1 Aug 2005 14:07:16 +0000 Subject: [PATCH] add leave part close in muc_commands; add some fixmes --- src/groupchat_window.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 93b93f635..1e2b59307 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -45,8 +45,8 @@ class GroupchatWindow(chat.Chat): chat.Chat.__init__(self, plugin, account, 'groupchat_window') # alphanum sorted - self.muc_cmds = ['ban', 'chat', 'clear', 'compact', 'kick', - 'me', 'msg', 'nick', 'topic'] + self.muc_cmds = ['ban', 'chat', 'clear', 'close', 'compact', 'kick', + 'leave', 'me', 'msg', 'nick', 'part', 'topic'] self.nicks = {} # our nick for each groupchat we are in gajim.gc_contacts[account] = {} # contact instances for each room @@ -626,9 +626,13 @@ class GroupchatWindow(chat.Chat): self.print_conversation(self.subjects[room_jid], room_jid) return # don't print the command + #FIXME: we lack /join to adhere to JEP + elif message.startswith('/leave') or message.startswith('/part')\ or message.startswith('/close'): # close current tab + #FIXME: accept optional reason (pas in status msg for this room) + # see JEP room_jid = self.get_active_jid() self.remove_tab(room_jid) return # don't print the command