X-Git-Url: https://git.ucc.asn.au/?p=uccdoor.git;a=blobdiff_plain;f=client-xmpp.py;h=2344158c828f4fbf2bef914baf97b2fdb77334ad;hp=7d8d9dd35c27d1a6a36cda6d6abfada48c16d64d;hb=refs%2Fheads%2Fmaster;hpb=620f3cc801bd3da168c09bb71412144e966cb2d7;ds=sidebyside diff --git a/client-xmpp.py b/client-xmpp.py index 7d8d9dd..2344158 100755 --- a/client-xmpp.py +++ b/client-xmpp.py @@ -52,7 +52,7 @@ class Door(object): self.state_changed(new_state) def state_changed(self, new_state): - print "xmpp state change detected for %s from %i to %i" % (self.doorname, self.state, newstate) + print "xmpp state change detected for %s from %i to %i" % (self.doorname, self.state, new_state) self.state = new_state # look up the dictionary object for the current state, then construct # a presence object using that as a keyword argument