Currently you're telling it to /play to whatever window is active at the time. You need to tell it to /play to the channel from which the incoming text came.

Code:
on *:TEXT:!howto:#trommoc: { play # moccomands.txt }