do not accept /topicX
This commit is contained in:
parent
d0eabdfa1b
commit
fdebbc40bc
1 changed files with 3 additions and 0 deletions
|
@ -586,6 +586,9 @@ class GroupchatWindow(chat.Chat):
|
||||||
# or /topic to get the subject printed
|
# or /topic to get the subject printed
|
||||||
after_command = message[6:] # 6 is len('/topic')
|
after_command = message[6:] # 6 is len('/topic')
|
||||||
splitted_arg = after_command.split()
|
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
|
if len(splitted_arg): # we set subject
|
||||||
new_subj = ' '.join(splitted_arg).strip()
|
new_subj = ' '.join(splitted_arg).strip()
|
||||||
gajim.connections[self.account].send_gc_subject(room_jid,
|
gajim.connections[self.account].send_gc_subject(room_jid,
|
||||||
|
|
Loading…
Add table
Reference in a new issue