openSUSE / dapsenv

NO LONGER MAINTAINED -- A build environment to build documentation with DAPS.
GNU General Public License v3.0
0 stars 2 forks source link

IRC bot crashes when exceeding max message length #1

Open mschnitzer opened 7 years ago

mschnitzer commented 7 years ago
 "/usr/lib/python3.4/site-packages/dapsenv/actions/daemon.py", line 159, in _thread_ircbot
    self._ircbot.start()
  File "/usr/lib/python3.4/site-packages/irc/bot.py", line 328, in start
    super(SingleServerIRCBot, self).start()
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 1249, in start
    self.reactor.process_forever()
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 278, in process_forever
    self.process_once(timeout)
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 259, in process_once
    self.process_data(i)
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 216, in process_data
    c.process_data()
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 582, in process_data
    self._process_line(line)
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 614, in _process_line
    handler(arguments, command, source, tags)
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 646, in _handle_message
    self._handle_event(event)
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 673, in _handle_event
    self.reactor._handle_event(self, event)
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 398, in _handle_event
    result = handler.callback(connection, event)
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 1212, in _dispatcher
    method(connection, event)
  File "/usr/lib/python3.4/site-packages/dapsenv/ircbot.py", line 94, in on_privmsg
    c.privmsg(e.source.nick, "Active Builds: {}".format(", ".join(active_builds)))
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 887, in privmsg
    self.send_raw("PRIVMSG %s :%s" % (target, text))
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 923, in send_raw
    sender(self._prep_message(string))
  File "/usr/lib/python3.4/site-packages/irc/client.py", line 911, in _prep_message
    raise MessageTooLong(msg)
irc.client.MessageTooLong: Messages limited to 512 bytes including CR/LF