3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-06 11:28:43 +02:00

EventDispatcher: clarify just a bit more

This commit is contained in:
Pragmatic Software 2021-07-06 19:07:54 -07:00
parent 098734c946
commit a1b96b6db6

View File

@ -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