Commits

Jason R. Coombs committed 04fd233

The latest irc module honors the RFC and doesn't allow messages longer than 512 characters. For now, prevent errors by truncating messages.

  • Participants
  • Parent commits 487be98

Comments (0)

Files changed (1)

File pmxbot/core.py

 			func = self.c.action
 			s = s.split(' ', 1)[-1].lstrip()
 			log = False
+		if len(s) > 510:
+			s = s[:510]
 		func(channel, s)
 		if (
 				channel in self._channels