Fix the irc plugin

(and fuck the scoping of python closures)