diff options
author | mathieui <mathieui@mathieui.net> | 2018-08-09 00:56:49 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-08-09 00:56:49 +0200 |
commit | 24b1a1fe50a72b192f01c7ee3bd32d636e81e1be (patch) | |
tree | 8bea3326c1ed1229c7d40ddfdcb2c96566df6f10 | |
parent | ee5658946873a1b1ad7a42a53b19f07982937fc2 (diff) | |
download | poezio-24b1a1fe50a72b192f01c7ee3bd32d636e81e1be.tar.gz poezio-24b1a1fe50a72b192f01c7ee3bd32d636e81e1be.tar.bz2 poezio-24b1a1fe50a72b192f01c7ee3bd32d636e81e1be.tar.xz poezio-24b1a1fe50a72b192f01c7ee3bd32d636e81e1be.zip |
yapf -rip
-rw-r--r-- | poezio/core/core.py | 1 | ||||
-rw-r--r-- | poezio/tabs/basetabs.py | 7 | ||||
-rw-r--r-- | poezio/tabs/muctab.py | 7 |
3 files changed, 11 insertions, 4 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py index 3dd7dfe2..85e68bf5 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -1059,7 +1059,6 @@ class Core: """Focus a tab""" return self.tabs.set_current_tab(tab) - ### Opening actions ### def open_conversation_window(self, jid: JID, diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 80b72ad9..6a35bb51 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -36,7 +36,6 @@ from poezio.decorators import command_args_parser log = logging.getLogger(__name__) - # getters for tab colors (lambdas, so that they are dynamic) STATE_COLORS = { 'disconnected': lambda: get_theme().COLOR_TAB_DISCONNECTED, @@ -515,7 +514,11 @@ class ChatTab(Tab): logs = logger.get_logs(safeJID(self.name).bare, log_nb) return logs - def log_message(self, txt: str, nickname: str, time: Optional[datetime] = None, typ=1): + def log_message(self, + txt: str, + nickname: str, + time: Optional[datetime] = None, + typ=1): """ Log the messages in the archives. """ diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index ab1b90e5..4ec973a9 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -845,7 +845,12 @@ class MucTab(ChatTab): } self.add_message(kick_msg, typ=2) - def on_user_leave_groupchat(self, user, jid, status, from_nick, from_room, + def on_user_leave_groupchat(self, + user, + jid, + status, + from_nick, + from_room, server_initiated=False): """ When an user leaves a groupchat |