mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
EventDispatcher: clarify just a bit more
This commit is contained in:
parent
098734c946
commit
a1b96b6db6
@ -93,7 +93,8 @@ sub dispatch_event {
|
||||
# update $dispatch_result only to a defined handler result because
|
||||
# we want to know if at least one handler handled the event. the
|
||||
# value of $dispatch_result will be undef if NONE of the handlers
|
||||
# have kicked in.
|
||||
# have kicked in. in other words, an event handler may return
|
||||
# undef to indicate that they didn't handle the event after all.
|
||||
$dispatch_result = $handler_result if defined $handler_result;
|
||||
|
||||
# check for error
|
||||
|
Loading…
Reference in New Issue
Block a user