From 74a09ad07f69fbb3b966134ee4d0db9d4600c025 Mon Sep 17 00:00:00 2001 From: moyamo Date: Fri, 27 Feb 2015 16:19:51 +0200 Subject: [PATCH] Fix typo --- session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/session.py b/session.py index 7cecebc..5e1a4c3 100644 --- a/session.py +++ b/session.py @@ -29,7 +29,7 @@ import time from yowsup.stacks import YowStack from yowsup.layers import YowLayerEvent, YowParallelLayer -from yowsup.layers.interface import YowInterfaceLayer, PrototocolEntityCallback +from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback from yowsup.layers.auth import (YowCryptLayer, YowAuthenticationProtocolLayer, AuthError) from yowsup.layers.coder import YowCoderLayer @@ -420,7 +420,7 @@ class SpectrumLayer(YowInterfaceLayer): self.legacyName(self.getProp(SpectrumLayer.PROP_LEGACYNAME)) self.bot = Bot(self) - @PrototocolEntityCallback("success") + @ProtocolEntityCallback("success") def onAuthSuccess(self, entity): self.logger.info("Auth success: %s", self.user) @@ -432,7 +432,7 @@ class SpectrumLayer(YowInterfaceLayer): self.call("ready") self.call("group_getGroups", ("participating",)) - @PrototocolEntityCallback("failed") + @ProtocolEntityCallback("failed") def onAuthFailed(self, entity): self.logger.info("Auth failed: %s (%s)", self.user, entity.getReason()) self.backend.handleDisconnected(self.user, 0, reason)