From c9d98a9494fd677230376ec51b7e91382adc9015 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 19 Jan 2006 09:50:53 +0000 Subject: [PATCH] use helper func and do 80 margin --- src/common/connection.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 64a7c51f3..53b20d645 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1422,9 +1422,11 @@ class Connection: # Get bookmarks from private namespace self.get_bookmarks() - # If it's a gmail account, inform the server that we want e-mail notifications - if our_jid.split('@')[1] == 'gmail.com': - gajim.log.debug(('%s is a gmail account. Setting option to get e-mail notifications on the server.') % (our_jid)) + # If it's a gmail account, + # inform the server that we want e-mail notifications + if gajim.get_server_from_jid(our_jid) == 'gmail.com': + gajim.log.debug(('%s is a gmail account. Setting option ' + 'to get e-mail notifications on the server.') % (our_jid)) iq = common.xmpp.Iq(typ = 'set', to = our_jid) iq.setAttr('id', 'MailNotify') query = iq.setTag('usersetting')