Commit 66c4f02c authored by Link Mauve's avatar Link Mauve

Fix syntax errors in the previous commit.

parent a1af8a49
Pipeline #1876 passed with stages
in 2 minutes and 25 seconds
......@@ -1274,36 +1274,36 @@ class HandlerCore:
if show_unavailable or hide_unavailable or non_priv or logging_off\
or non_anon or semi_anon or full_anon:
tab.add_message(
'\x19%(info_col)s}Info: A configuration change not privacy-related occurred.' % info_col
'\x19%(info_col)s}Info: A configuration change not privacy-related occurred.' % info_col,
typ=2)
modif = True
if show_unavailable:
tab.add_message(
'\x19%(info_col)s}Info: The unavailable members are now shown.' % info_col
'\x19%(info_col)s}Info: The unavailable members are now shown.' % info_col,
typ=2)
elif hide_unavailable:
tab.add_message(
'\x19%(info_col)s}Info: The unavailable members are now hidden.' % info_col
'\x19%(info_col)s}Info: The unavailable members are now hidden.' % info_col,
typ=2)
if non_anon:
tab.add_message(
'\x191}Warning:\x19%(info_col)s} The room is now not anonymous. (public JID)' % info_col
'\x191}Warning:\x19%(info_col)s} The room is now not anonymous. (public JID)' % info_col,
typ=2)
elif semi_anon:
tab.add_message(
'\x19%(info_col)s}Info: The room is now semi-anonymous. (moderators-only JID)' % info_col
'\x19%(info_col)s}Info: The room is now semi-anonymous. (moderators-only JID)' % info_col,
typ=2)
elif full_anon:
tab.add_message(
'\x19%(info_col)s}Info: The room is now fully anonymous.' % info_col
'\x19%(info_col)s}Info: The room is now fully anonymous.' % info_col,
typ=2)
if logging_on:
tab.add_message(
'\x191}Warning: \x19%(info_col)s}This room is publicly logged' % info_col
'\x191}Warning: \x19%(info_col)s}This room is publicly logged' % info_col,
typ=2)
elif logging_off:
tab.add_message(
'\x19%(info_col)s}Info: This room is not logged anymore.' % info_col
'\x19%(info_col)s}Info: This room is not logged anymore.' % info_col,
typ=2)
if modif:
self.core.refresh_window()
......
......@@ -962,14 +962,14 @@ class MucTab(ChatTab):
info_col = dump_tuple(get_theme().COLOR_INFORMATION_TEXT)
if from_nick == self.own_nick:
msg = '\x19%(color)s}You\x19%(info_col)s} changed: ' % {
'info_col': info_col),
'info_col': info_col,
'color': color
}
else:
msg = '\x19%(color)s}%(nick)s\x19%(info_col)s} changed: ' % {
'nick': from_nick,
'color': color,
'info_col': info_col)
'info_col': info_col
}
if affiliation != user.affiliation:
msg += 'affiliation: %s, ' % affiliation
......
......@@ -206,7 +206,7 @@ class ConversationInfoWin(InfoWin):
"""
Write the information about the contact
"""
color = to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
color = to_curses_attr(get_theme().COLOR_INFORMATION_BAR)
if not contact:
self.addstr("(contact not in roster)", color)
return
......@@ -219,7 +219,7 @@ class ConversationInfoWin(InfoWin):
Just write the jid that we are talking to
"""
theme = get_theme()
color = to_curses_attr(theme.COLOR_INFORMATION_BAR))
color = to_curses_attr(theme.COLOR_INFORMATION_BAR)
self.addstr('[', color)
self.addstr(jid.full,
to_curses_attr(theme.COLOR_CONVERSATION_NAME))
......@@ -241,7 +241,7 @@ class DynamicConversationInfoWin(ConversationInfoWin):
log.debug("write_contact_jid DynamicConversationInfoWin, jid: %s",
jid.resource)
theme = get_theme()
color = to_curses_attr(theme.COLOR_INFORMATION_BAR))
color = to_curses_attr(theme.COLOR_INFORMATION_BAR)
self.addstr('[', color)
self.addstr(jid.bare,
to_curses_attr(theme.COLOR_CONVERSATION_NAME))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment