Changeset 365b25a


Ignore:
Timestamp:
2015-11-20T16:18:12Z (4 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
63cad66
Parents:
e1352e15
Message:

One callback ref fix, and show at least something for messages of an unknown
type. (Currently there's no handling for audio msgs for example.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/wa.py

    re1352e15 r365b25a  
    280280        def onStatusNotification(self, status):
    281281                print "New status for %s: %s" % (status.getFrom(), status.status)
    282                 self.bee.buddy_status_msg(status.getFrom(), status.status)
     282                self.cb.buddy_status_msg(status.getFrom(), status.status)
    283283       
    284284        def onGroupSubjectNotification(self, sub):
     
    439439
    440440                stack = (YowStackBuilder()
    441                          .pushDefaultLayers(False)
     441                         .pushDefaultLayers(True)
    442442                         .push(BitlBeeLayer)
    443443                         .build())
     
    473473                                lines.append(msg.getCaption())
    474474                        text = "\n".join(lines)
     475                else:
     476                        text = "Message of unknown type %r" % type(msg)
    475477
    476478                if msg.getParticipant():
Note: See TracChangeset for help on using the changeset viewer.