Selaa lähdekoodia

fix error report to homechannel

tBKwtWS 7 vuotta sitten
vanhempi
sitoutus
c7543aae92
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)