removing \ where not needed
This commit is contained in:
parent
3db9a32c91
commit
4779c800b7
|
@ -32,7 +32,7 @@ from common import i18n
|
||||||
_ = i18n._
|
_ = i18n._
|
||||||
|
|
||||||
|
|
||||||
STATUS_LIST = ['offline', 'connecting', 'online', 'chat', 'away', 'xa', 'dnd', \
|
STATUS_LIST = ['offline', 'connecting', 'online', 'chat', 'away', 'xa', 'dnd',
|
||||||
'invisible']
|
'invisible']
|
||||||
|
|
||||||
distro_info = {
|
distro_info = {
|
||||||
|
@ -624,7 +624,7 @@ class Connection:
|
||||||
self.myVCardID.append(iq.getID())
|
self.myVCardID.append(iq.getID())
|
||||||
elif (status == 'offline') and self.connected:
|
elif (status == 'offline') and self.connected:
|
||||||
self.connected = 0
|
self.connected = 0
|
||||||
self.connection.send(common.xmpp.Presence(typ = 'unavailable',\
|
self.connection.send(common.xmpp.Presence(typ = 'unavailable',
|
||||||
status = msg))
|
status = msg))
|
||||||
self.connection.disconnect()
|
self.connection.disconnect()
|
||||||
self.dispatch('STATUS', 'offline')
|
self.dispatch('STATUS', 'offline')
|
||||||
|
@ -635,7 +635,7 @@ class Connection:
|
||||||
if status == 'invisible':
|
if status == 'invisible':
|
||||||
ptype = 'invisible'
|
ptype = 'invisible'
|
||||||
prio = str(gajim.config.get_per('accounts', self.name, 'priority'))
|
prio = str(gajim.config.get_per('accounts', self.name, 'priority'))
|
||||||
p = common.xmpp.Presence(typ = ptype, priority = prio, show = status,\
|
p = common.xmpp.Presence(typ = ptype, priority = prio, show = status,
|
||||||
status = msg)
|
status = msg)
|
||||||
if signed: p.setTag(common.xmpp.NS_SIGNED + ' x').setData(
|
if signed: p.setTag(common.xmpp.NS_SIGNED + ' x').setData(
|
||||||
signed)
|
signed)
|
||||||
|
@ -706,7 +706,7 @@ class Connection:
|
||||||
|
|
||||||
def update_user(self, jid, name, groups):
|
def update_user(self, jid, name, groups):
|
||||||
if self.connection:
|
if self.connection:
|
||||||
self.connection.getRoster().setItem(jid = jid, name = name,\
|
self.connection.getRoster().setItem(jid = jid, name = name,
|
||||||
groups = groups)
|
groups = groups)
|
||||||
|
|
||||||
def request_agents(self, jid, node):
|
def request_agents(self, jid, node):
|
||||||
|
@ -760,7 +760,7 @@ class Connection:
|
||||||
gajim.config.set('usegpg', True)
|
gajim.config.set('usegpg', True)
|
||||||
else:
|
else:
|
||||||
gajim.config.set('usegpg', False)
|
gajim.config.set('usegpg', False)
|
||||||
self.dispatch('ACC_OK', (hostname, login, password, name, \
|
self.dispatch('ACC_OK', (hostname, login, password, name,
|
||||||
resource, prio, use_proxy, proxyhost, proxyport))
|
resource, prio, use_proxy, proxyhost, proxyport))
|
||||||
|
|
||||||
def account_changed(self, new_name):
|
def account_changed(self, new_name):
|
||||||
|
|
Loading…
Reference in New Issue