Well, the reason it wasn't working for you is because the ":" char is the delimiter between 'menu:command'. This just returns "name of virus" : "msg $chan $var(%viruses.*,N)" as the 'menuitem:command', and the command is fianlly evaluated within the execution of "msg $chan $var()".