do not accept /topicX

This commit is contained in:
Nikos Kouremenos 2005-07-25 19:33:03 +00:00
parent d0eabdfa1b
commit fdebbc40bc
1 changed files with 3 additions and 0 deletions

View File

@ -586,6 +586,9 @@ class GroupchatWindow(chat.Chat):
# or /topic to get the subject printed
after_command = message[6:] # 6 is len('/topic')
splitted_arg = after_command.split()
if not message[6].isspace() and len(message) > 6:
# he wrote /topicA so do not accept that
return
if len(splitted_arg): # we set subject
new_subj = ' '.join(splitted_arg).strip()
gajim.connections[self.account].send_gc_subject(room_jid,