on ^*:HOTLINK:[whois]:?:{ return }
on ^*:HOTLINK:[chat]:?:{ return }
on ^*:HOTLINK:[close]:?:{ return }
on ^*:HOTLINK:[send]:?:{ return }
;
on *:HOTLINK:[whois]:?:{ whois $active }
on *:HOTLINK:[chat]:?:{ dcc chat $active }
on *:HOTLINK:[close]:?:{ _sendkeys $+($chr(37),Z) }
on *:HOTLINK:[send]:?:{ _sendkeys $+($chr(37),S) $active }
^ how about that (untested)
Cleaner & shorter are not always the same thing, i beleive that very clean and easy to read, its not the shortest, but i doubt it runs much slower.
Becuase you are the $nick triggering the event, its your mouse thats over something! Try using $active, sicne it triggers on the $active window.
I was wondering, is there a reason your using sendkey rather than just closing the window? or just using /dcc send $active (was $nick)?
I can see some, just dont know if u needed to use that.