diff options
author | mathieui <mathieui@mathieui.net> | 2020-05-22 01:34:11 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-05-23 16:10:13 +0200 |
commit | fbec652efd4f0667f350de823b71d8ae91d98cae (patch) | |
tree | 0aaf308f9a3552a393aa2e464d972e157e2eba20 | |
parent | b7423ee43bb14fc97b5db090206cee7a76e8b368 (diff) | |
download | poezio-fbec652efd4f0667f350de823b71d8ae91d98cae.tar.gz poezio-fbec652efd4f0667f350de823b71d8ae91d98cae.tar.bz2 poezio-fbec652efd4f0667f350de823b71d8ae91d98cae.tar.xz poezio-fbec652efd4f0667f350de823b71d8ae91d98cae.zip |
Core: dedup some code
-rw-r--r-- | poezio/core/core.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py index 8ac88dd4..973c9103 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -2075,16 +2075,7 @@ class Core: # do not join rooms that do not have autojoin # but display them anyway if bm.autojoin: - muc.join_groupchat( - self, - bm.jid, - nick, - passwd=bm.password, - status=self.status.message, - show=self.status.show, - tab=tab) - if tab._text_buffer.last_message is None: - asyncio.ensure_future(mam.on_tab_open(tab)) + tab.join() def check_bookmark_storage(self, features): private = 'jabber:iq:private' in features |