summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-01-22 21:07:25 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-01-22 21:07:25 +0100
commit66c4f02c8ef8bb1d5f67086b24f65d2557f4d13d (patch)
treef20b222f3e05900cf4d859b1e5ab9813bcd57829
parenta1af8a49f15ff9d11a7c1e0ce6809e632ac25d28 (diff)
downloadpoezio-66c4f02c8ef8bb1d5f67086b24f65d2557f4d13d.tar.gz
poezio-66c4f02c8ef8bb1d5f67086b24f65d2557f4d13d.tar.bz2
poezio-66c4f02c8ef8bb1d5f67086b24f65d2557f4d13d.tar.xz
poezio-66c4f02c8ef8bb1d5f67086b24f65d2557f4d13d.zip
Fix syntax errors in the previous commit.
-rw-r--r--poezio/core/handlers.py16
-rw-r--r--poezio/tabs/muctab.py4
-rw-r--r--poezio/windows/info_wins.py6
3 files changed, 13 insertions, 13 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index b55d816b..94d05ee2 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -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()
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 16f6d4cf..de85cf0b 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -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
diff --git a/poezio/windows/info_wins.py b/poezio/windows/info_wins.py
index d07cbe20..3a8d1863 100644
--- a/poezio/windows/info_wins.py
+++ b/poezio/windows/info_wins.py
@@ -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))