elseif $nick <bot> { msg $nick xdcc send #2 }
Here you want:
elseif $nick == <bot> { msg $nick xdcc send #2 }

else $nick <bot> { msg $nick xdcc send #1 }
Here you want either:
else { msg $nick xdcc send #1 }
-or-
elseif $nick == <bot> { msg $nick xdcc send #1 }