The WM_MCOMMAND message to the 'SendMessage' function has the wrong default behavior. The behavior should default to script commands by default, not sending messages to a channel.

Repro steps:
1) Write 'window "status window" 0 0 100 100' to a memory mapped file named "mIRC".
2) Call 'SendMessage( hwnd, WM_MCOMMAND, 0, 0 )' in the 'user32' system DLL.

The text is sent to the active window instead of executed.

The change might break existing code. Therefore, a new 3rd message to preserve backwards compatibility might be better.