+ m = RE_BUTTON.match(line)
+ if not m is None:
+ distributeXmppMsg(uwscfg.msg_bored)
+ continue
+ m = RE_PRESENCE.match(line)
+ if not m is None:
+ if not_initial_presence:
+ formatAndDistributePresence(m.group(1))
+ else:
+ not_initial_presence=True
+ distributeXmppMsg("Initial Presence received: %s" % m.group(1) ,debug=True)
+ continue