This had all kinds of unicode issues so I just ported it to python 3 instead

also it prints to stdout instead of directly to irc, so you have to run like >> irc 2>> log