Skip to content

Instantly share code, notes, and snippets.

@pawelz
Created February 13, 2010 21:14
Show Gist options
  • Save pawelz/303678 to your computer and use it in GitHub Desktop.
Save pawelz/303678 to your computer and use it in GitHub Desktop.
# vim:fileencoding=utf-8:sw=4
# Copyright (c) 2009 by Paweł Zuzelski <pawelz@pld-linux.org>
# Licensed under terms of WTFPL, see http://sam.zoy.org/wtfpl/
import ekg
import sys
def messageHandler(session, uid, type, text, stime, ignore_level):
sys.stdout.write("\a")
ekg.handler_bind("protocol-message-received", messageHandler)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment