irc.h: Add G_GNUC_PRINTF annotations to printf-like functions
The change in root_commands.c is due to -Wformat-zero-length, which is bs but whatever. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47901