From 45c09182511042d5fa3d7138a917bbdd10f84f09 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Wed, 30 Dec 2015 20:28:28 +0000 Subject: [PATCH] added way to listen for any event --- steam/util/events.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/steam/util/events.py b/steam/util/events.py index c0faacf..257eaa0 100644 --- a/steam/util/events.py +++ b/steam/util/events.py @@ -27,6 +27,10 @@ class EventEmitter(object): else: gevent.spawn(callback, *args) + # every event is also emitted as None + if event is not None: + self.emit(None, event, *args) + def remove_listener(self, event, callback): """ Removes a callback for the specified event