iv been having a little play with this and i changed
;alias -l denymsg return I'm sorry, but for any of several reasons, I was unable to accept your invitation to: $eval($did($dname,20).text,1)
to
alias -l denymsg return I'm sorry, but for any of several reasons, I was unable to accept your invitation to join $did($dname,20).text
and now works perfectly. just another option for you :)
nice code overall nice job.