Explorar o código

fix error report to homechannel

tBKwtWS %!s(int64=7) %!d(string=hai) anos
pai
achega
c7543aae92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rotbot.py

+ 1 - 1
rotbot.py

@@ -53,7 +53,7 @@ class PyRot(irc.bot.SingleServerIRCBot):
     
     def on_error(self, connection, event):
         log.notice(str(event))
-        connection.privmsg(self.homechannel, "ERROR: " + event)
+        connection.privmsg(self.homechannel, "ERROR: " + str(event))
     
     def on_nick(self, connection, event):
         events.on_nick.process_event(self, connection, event)