Perl: add support for hexchat_event_attrs

Short demo: https://dl.dropboxusercontent.com/s/06o6r8zobacoroe/attrs.pl
Comment in line 1029 needs to be updated.