Factor out the compilation of privmsg pattern.
Add arguments support.