~stefanor/ibid/expose-irc-username

« back to all changes in this revision

Viewing changes to ibid/source/irc.py

  • Committer: Tarmac
  • Author(s): Stefano Rivera
  • Date: 2012-12-05 21:30:24 UTC
  • mfrom: (1054.2.1 hostmask)
  • Revision ID: tarmac-20121205213024-hvimzxl9nu5t5k8t
Tell Twisted not to wrap IRC messages, we calculate the length ourselves
Author: Stefano Rivera
Merge Request: http://code.launchpad.net/~stefanor/ibid/hostmask/+merge/138313
Approved by: Jonathan Hitchcock
Fixes LP: #

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
            self.notice(raw_target, raw_message)
209
209
            self.factory.log.debug(u"Sent notice to %s: %s", target, message)
210
210
        else:
211
 
            self.msg(raw_target, raw_message)
 
211
            # we do our own truncation
 
212
            self.msg(raw_target, raw_message, length=512)
212
213
            self.factory.log.debug(u"Sent privmsg to %s: %s", target, message)
213
214
 
214
215
    def join(self, channel, key=None):