Skip to content
Snippets Groups Projects
Commit 15359f8f authored by nkour's avatar nkour
Browse files

fix typo in ban

parent 4abf4f53
No related branches found
No related tags found
No related merge requests found
......@@ -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">&lt;b&gt;Notifications&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Visual Notifications&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment