From ac6adbf21b71985579b81e14712ded85bf3743f2 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 20 Feb 2018 21:52:55 +0100 Subject: Update documentation (& formatting) - nick colors are not random by default - /close is a useful command --- poezio/tabs/conversationtab.py | 5 ++--- poezio/tabs/muctab.py | 14 ++++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'poezio') diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index ec0d6659..8b713b2d 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -231,9 +231,8 @@ class ConversationTab(OneToOneTab): return True else: self._text_buffer.add_message( - "\x19%(info_col)s}No information available\x19o" % { - 'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT) - }) + "\x19%(info_col)s}No information available\x19o" % + {'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)}) return True @command_args_parser.quoted(0, 1) diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 9a1a0821..afe62188 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -523,16 +523,18 @@ class MucTab(ChatTab): if '170' in status_codes: self.add_message( '\x19%(warn_col)s}Warning:\x19%(info_col)s}' - ' This room is publicly logged' % - {'info_col': info_col, - 'warn_col': warn_col}, + ' This room is publicly logged' % { + 'info_col': info_col, + 'warn_col': warn_col + }, typ=0) if '100' in status_codes: self.add_message( '\x19%(warn_col)s}Warning:\x19%(info_col)s}' - ' This room is not anonymous.' % - {'info_col': info_col, - 'warn_col': warn_col}, + ' This room is not anonymous.' % { + 'info_col': info_col, + 'warn_col': warn_col + }, typ=0) def handle_presence_joined(self, presence, status_codes): -- cgit v1.2.3