I saw enough times reported that native mirc commands, like this /msg, threw this error. Sometimes the problem vanishes without apparent reason. If you can still reproduce this, can you open a debug window to see what mirc eventually sends to the irc server? If it does, you see the whole script command there.