Try changing
Code:
.msg $nick $v1 
to
Code:
.msg $nick $v2 


If that still doesn't work, please relay which version of mIRC your bot is using.