Adaptation of http://pastebin.com/ZpiAqUsm for Supybot