Skip to content
Snippets Groups Projects
Commit 148fe12a authored by nkour's avatar nkour
Browse files

removing () from ifs and foo==0 becomes not foo in an if

parent 781261b9
No related branches found
No related tags found
No related merge requests found
......@@ -610,7 +610,7 @@ class Connection:
signed = ''
if self.connected < 2:
self.dispatch('BAD_PASSPHRASE', ())
if (show != 'offline') and (self.connected == 0):
if show != 'offline' and not self.connected:
self.connection = self.connect()
if self.connected == 2:
self.connected = STATUS_LIST.index(show)
......@@ -631,7 +631,7 @@ class Connection:
iq.setTag(common.xmpp.NS_VCARD + ' vCard')
self.connection.send(iq)
self.myVCardID.append(iq.getID())
elif (show == 'offline') and self.connected:
elif show == 'offline' and self.connected:
self.connected = 0
if self.connection:
self.connection.send(common.xmpp.Presence(typ = 'unavailable',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment