bbot
bbot copied to clipboard
watched_events doesn't work in output modules
Output modules seem to ignore the watched_events value, as well as the filter_event method. To specify a particular set of events, currently it is necessary to explicitly check event.type against self.watched_events like this:
def handle_event(self, event):
if event.type in self.watched_events:
do_stuff()