fix typo in ban
This commit is contained in:
parent
4abf4f53b3
commit
15359f8fe1
|
@ -682,14 +682,14 @@ class GroupchatWindow(chat.Chat):
|
|||
splitted_text_after_ban_command = text_after_ban_command.split()
|
||||
if len(splitted_text_after_ban_command) == 1:
|
||||
# reason is optional so accept just nick
|
||||
nick_to_ban = splitted_text_after_msg_command[0]
|
||||
nick_to_ban = splitted_text_after_ban_command[0]
|
||||
if nick_to_ban in nicks:
|
||||
fjid = gajim.construct_fjid(room_jid, nick_to_ban)
|
||||
gajim.connections[self.account].gc_set_affiliation(room_jid,
|
||||
fjid, 'outcast')
|
||||
elif len(splitted_text_after_ban_command) >= 2:
|
||||
# a reason was given
|
||||
nick_to_ban = splitted_text_after_msg_command[0]
|
||||
nick_to_ban = splitted_text_after_ban_command[0]
|
||||
if nick_to_ban in nicks:
|
||||
reason = splitted_text_after_msg_command[1:]
|
||||
fjid = gajim.construct_fjid(room_jid, nick_to_ban)
|
||||
|
|
|
@ -4341,7 +4341,7 @@
|
|||
<child>
|
||||
<widget class="GtkLabel" id="label240">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"><b>Notifications</b></property>
|
||||
<property name="label" translatable="yes"><b>Visual Notifications</b></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">True</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
|
|
Loading…
Reference in New Issue