Commits

Jason R. Coombs committed 23e3a9a

Also trap errors about carriage returns

  • Participants
  • Parent commits 84305bd
  • Tags 1103.6.7

Comments (0)

Files changed (1)

File pmxbot/core.py

 				globals()['log'].warning("Long message could not be "
 					"transmitted: %s", s)
 				return
+			if u'Carriage returns not allowed' in unicode(exc):
+				globals()['log'].warning("Message contains carriage returns, "
+					"which aren't allowed in IRC messages: %s", s)
+				return
 			raise
 		if (
 				channel in self._channels