diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 97cac99b0e8276e7a010c25ac98d8a1dff70ee6e..754c20df9dfde69ec42b0b980f67f481675a0f49 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1031,7 +1031,7 @@ class GroupchatControl(ChatControlBase): # Autorejoin stuff goes here. # Notice that we don't need to activate autorejoin if connection is lost # or in progress. - if self.autorejoin is None and gajim.cccount_is_connectedself.account): + if self.autorejoin is None and gajim.account_is_connected(self.account): ar_to = gajim.config.get('muc_autorejoin_timeout') if ar_to: self.autorejoin = gobject.timeout_add_seconds(ar_to, self.rejoin)