yapf -rip
This commit is contained in:
parent
ee56589468
commit
24b1a1fe50
3 changed files with 11 additions and 4 deletions
|
@ -1059,7 +1059,6 @@ class Core:
|
||||||
"""Focus a tab"""
|
"""Focus a tab"""
|
||||||
return self.tabs.set_current_tab(tab)
|
return self.tabs.set_current_tab(tab)
|
||||||
|
|
||||||
|
|
||||||
### Opening actions ###
|
### Opening actions ###
|
||||||
|
|
||||||
def open_conversation_window(self, jid: JID,
|
def open_conversation_window(self, jid: JID,
|
||||||
|
|
|
@ -36,7 +36,6 @@ from poezio.decorators import command_args_parser
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# getters for tab colors (lambdas, so that they are dynamic)
|
# getters for tab colors (lambdas, so that they are dynamic)
|
||||||
STATE_COLORS = {
|
STATE_COLORS = {
|
||||||
'disconnected': lambda: get_theme().COLOR_TAB_DISCONNECTED,
|
'disconnected': lambda: get_theme().COLOR_TAB_DISCONNECTED,
|
||||||
|
@ -515,7 +514,11 @@ class ChatTab(Tab):
|
||||||
logs = logger.get_logs(safeJID(self.name).bare, log_nb)
|
logs = logger.get_logs(safeJID(self.name).bare, log_nb)
|
||||||
return logs
|
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.
|
Log the messages in the archives.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -845,7 +845,12 @@ class MucTab(ChatTab):
|
||||||
}
|
}
|
||||||
self.add_message(kick_msg, typ=2)
|
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):
|
server_initiated=False):
|
||||||
"""
|
"""
|
||||||
When an user leaves a groupchat
|
When an user leaves a groupchat
|
||||||
|
|
Loading…
Reference in a new issue