Stop Start-Event from propogating

This commit is contained in:
moyamo 2015-02-27 17:33:08 +02:00
parent 479efedc26
commit b651ba8c37
1 changed files with 3 additions and 1 deletions

View File

@ -424,6 +424,8 @@ class SpectrumLayer(YowInterfaceLayer):
self.buddies = BuddyList(self.legacyName, self.db)
self.bot = Bot(self)
return True
return False
@ProtocolEntityCallback("success")
def onAuthSuccess(self, entity):
@ -434,7 +436,7 @@ class SpectrumLayer(YowInterfaceLayer):
self.updateRoster()
@ProtocolEntityCallback("failed")
@ProtocolEntityCallback("failure")
def onAuthFailed(self, entity):
self.logger.info("Auth failed: %s (%s)", self.user, entity.getReason())
self.backend.handleDisconnected(self.user, 0, reason)