Changeset 9:ba3ccb5699fc


Ignore:
Timestamp:
Jan 2, 2008, 1:28:07 PM (14 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@28
Message:

Fix sending unavailable presence.

Author: ralphm.
Fixes #3.

Location:
wokkel
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/xmppim.py

    r2 r9  
    1 # Copyright (c) 2003-2007 Ralph Meijer
     1# -*- test-case-name: wokkel.test.test_xmppim -*-
     2#
     3# Copyright (c) 2003-2008 Ralph Meijer
    24# See LICENSE for details.
    35
     
    195197        self.send(AvailablePresence(entity, show, statuses, priority))
    196198
    197     def unavailable(self, entity, statuses=None):
     199    def unavailable(self, entity=None, statuses=None):
    198200        """
    199201        Send unavailable presence.
     
    207209        @type statuses: C{dict}
    208210        """
    209         self.send(AvailablePresence(entity, statuses))
     211        self.send(UnavailablePresence(entity, statuses))
    210212
    211213    def subscribe(self, entity):
     
    314316            roster = {}
    315317            for element in domish.generateElementsQNamed(result.query.children,
    316                                                          'item', NS_ROSTER):
     318                                                         'item', NS_ROSTER):
    317319                item = self._parseRosterItem(element)
    318320                roster[item.jid.userhost()] = item
     
    385387        Called when a message stanza was received.
    386388        """
    387 
Note: See TracChangeset for help on using the changeset viewer.