summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/core/core.py1
-rw-r--r--poezio/tabs/basetabs.py7
-rw-r--r--poezio/tabs/muctab.py7
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