Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #628 and #636 #796

Merged
merged 1 commit into from
May 22, 2015
Merged

Fix #628 and #636 #796

merged 1 commit into from
May 22, 2015

Conversation

aesedepece
Copy link
Contributor

This parses incoming <presence> stanzas and pass them as PresenceProtocolEntity to upper layers.

Usage example:

# This goes inside your app's YowInterfaceLayer
@ProtocolEntityCallback("presence")
def onPresence(self, entity):
  _type = entity.getType()
  _from = entity.getFrom()
  last = entity.getLast()
  print "Got presence of type %s from %s" % (_type, _from)
  if last is not None:
    print "Last seen: %s" % last

Wilm0r added a commit to bitlbee/bitlbee that referenced this pull request May 21, 2015
tgalal added a commit that referenced this pull request May 22, 2015
@tgalal tgalal merged commit f9b15de into tgalal:master May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants