/topic irc emulation

This commit is contained in:
Nikos Kouremenos 2005-07-19 09:59:21 +00:00
parent 29e9d8c699
commit c10ace87fe
1 changed files with 6 additions and 1 deletions

View File

@ -564,9 +564,14 @@ class GroupchatWindow(chat.Chat):
message = ' '.join(splitted_text_after_msg_command[1:]) message = ' '.join(splitted_text_after_msg_command[1:])
self.on_send_pm(nick=to_whom_nick, msg=message) self.on_send_pm(nick=to_whom_nick, msg=message)
return # don't print the command return # don't print the command
elif message.startswith('/topic '):
new_subj = message[7:].strip() # 7 is len('/topic ')
gajim.connections[self.account].send_gc_subject(room_jid, new_subj)
return # don't print the command
gajim.connections[self.account].send_gc_message(room_jid, message) gajim.connections[self.account].send_gc_message(room_jid, message)
message_buffer.set_text('', -1) message_buffer.set_text('')
message_textview.grab_focus() message_textview.grab_focus()
def print_conversation(self, text, room_jid, contact = '', tim = None): def print_conversation(self, text, room_jid, contact = '', tim = None):