Don't allow a login if a session already exists.

This commit is contained in:
Lefteris Chatzimparmpas 2012-02-21 17:48:22 +01:00
parent 18940cc9f2
commit 8b0e8943e3

View File

@ -48,6 +48,7 @@ function Account._login_user(self)
self._account.username .. '@' .. self._account.server .. ': ')
end
if self._account.session then return true end
local r, s = ifcore.login(self._account.server, self._account.port,
self._account.ssl, self._account.username,
self._account.password)