diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-04-26 21:05:05 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-04-26 21:05:05 (GMT) |
commit | 06680398a9949e0e9e4c446843512285c8ec6d7b (patch) | |
tree | 639c019785bc6b4a6df3bbfbacd27b8df50e911c | |
parent | 50183927d0ed88d7fad007c57778ad0b63e5d169 (diff) |
Allow to close private chat
-rwxr-xr-x | chat/chat.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chat/chat.py b/chat/chat.py index e978a2a..55ce757 100755 --- a/chat/chat.py +++ b/chat/chat.py @@ -172,6 +172,10 @@ class BuddyChat(Chat): self._act_name = "Chat: %s" % buddy.nick() Chat.__init__(self, controller) + def activity_on_connected_to_shell(self): + Chat.activity_on_connected_to_shell(self) + self.activity_set_can_close(True) + def recv_message(self, msg): Chat.recv_message(self, self._buddy, msg) @@ -189,6 +193,10 @@ class BuddyChat(Chat): success = False self._local_message(success, msg) + def activity_on_close_from_user(self): + Chat.activity_on_close_from_user(self) + self._buddy.set_chat(None) + class ChatRequestHandler(object): def __init__(self, parent): self._parent = parent |