plugins/irc: fix various issues