Add a $events identifier to return the events settings for a specific channel as stored in the $mircini [events] section.

for example to get the join events display status:

$events($chan,join)

instead of whats required now:

$gettok($readini($mircini,events,$chan),1,44)