This indicates $v1 is empty at the time /notice is called, which might happen if you have a /mode alias (that uses if statements). To check that, type
//echo -a > $isalias(mode).fname
If that outputs a filename, it means you have a /mode alias there. To bypass that alias, you can use !mode instead of plain mode.

Once more, /echo is your friend. You can use "/echo -a > $v1" in various places in your script to check if $v1 has the correct value.