Fixed the bug. When I restarted the IRC half the people joined back with the nicks you changed them too. Funny as hell.
For the record, you were only able to do that because clients are too lenient and don't respect DA STANDARD. A single newline (or even two in succession) isn't supposed to signal the start of a new command.