Hi there, I have this alias (it resends the last file sent):

/resend {
if (%ultimofile == $null) { echo -a Non hai inviato nessun file. Idiota. | return }
if ($?!="Inviare %ultimofile a $active $+ ?" == $true) {
if ($left($active,1) == #) {
var %sendnick = $?="Invio a che nick?"
}
else var %sendnick = $active
if (%sendnick == $null) { echo -a Specifica un nick. | return }
dcc send %sendnick %ultimofile
}
}

it works almost perfectly, there's only a problem: if you type /resend in a channel window, it seems that the script can't detect that it's a channel ( if ($left($active,1) == #) )and does not ask for a nick to send. How can I fix it?

Thanks alot