<dominikh>
what's your goal? prevent other handlers from matching that message?
<Lumio>
I create a module, which needs to listen to some events and after it finished, it should stop listening.
<Lumio>
But yes, preventing other handlers from matching would also be good in addition
<dominikh>
unless you dynamically added handlers, you shouldn't be removing those handlers on the fly. use some state to determine whether the handler should run or not
<Lumio>
I create them dynamically
<Lumio>
but the thing with states is a good point
Guest99360 is now known as deb
<dominikh>
how do you create them?
<dominikh>
if you're dynamically using Bot#on: #on returns the Handler object it registered, so store that and Handler#unregister once you don't want it anymore
postmodern has joined #cinch
[DS]Matej has quit [Changing host]
[DS]Matej has joined #cinch
[DS]Matej has quit [Changing host]
[DS]Matej has joined #cinch
geopet has quit []
irsol has quit [Ping timeout: 240 seconds]
geopet has joined #cinch
<Lumio>
@dominikh: sorry .. well, when someone writes a command which needs to have higher privileges, I start to check if the sender is founder of the channel and identified.
<Lumio>
So what I do is to listen to notices when I want to check those privileges