Page 1 of 1
event_handler lib update for Eventfilter
Posted: Wed Jun 03, 2020 4:14 am
by LuziferSenpai
Hey,
could you guys pls update the event_handler lib, so it supports Eventfilter and we dont need todo them outside? Should be possible or?
Greetz,
Luzifer
Re: event_handler lib update for Eventfilter
Posted: Wed Jun 03, 2020 9:56 am
by Klonan
Hmm, its more tricky
For instance, if you have two libs, one has event filter for the event, one does not, then what should it do?
Should it error and say "Well you can't have 1 with filter and 1 without",
Or should it mean the filter won't work and just have it be uselesss?
What if two libs have conflicting filters?
Re: event_handler lib update for Eventfilter
Posted: Wed Jun 03, 2020 10:40 am
by LuziferSenpai
Klonan wrote: Wed Jun 03, 2020 9:56 am
Hmm, its more tricky
For instance, if you have two libs, one has event filter for the event, one does not, then what should it do?
Should it error and say "Well you can't have 1 with filter and 1 without",
Or should it mean the filter won't work and just have it be uselesss?
What if two libs have conflicting filters?
Yea, forgot about that one.
Well, I dont know how to solve this.
Re: event_handler lib update for Eventfilter
Posted: Thu Jun 04, 2020 6:35 am
by Rseding91
LuziferSenpai wrote: Wed Jun 03, 2020 10:40 am
Well, I dont know how to solve this.
Easy, don't use an event library. Just register an event handler directly + your filters.