Changeset 27709
- Timestamp:
- 12/08/2009 03:25:29 AM (9 months ago)
- Location:
- branches/isupport-aware-mode-parsing-3296/twisted/words
- Files:
-
- 2 modified
-
protocols/irc.py (modified) (2 diffs)
-
test/test_irc.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/isupport-aware-mode-parsing-3296/twisted/words/protocols/irc.py
r27551 r27709 1747 1747 """ 1748 1748 channel, modes, args = params[0], params[1], params[2:] 1749 1749 1750 1750 if modes[0] not in '-+': 1751 1751 modes = '+' + modes … … 1761 1761 added, removed = parseModes(modes, args, paramModes) 1762 1762 except IRCBadModes: 1763 log.msg('An error occured while parsing the following MODE message:' 1764 ' MODE %s' % (' '.join(params),)) 1765 log.err() 1763 log.err(None, 'An error occured while parsing the following ' 1764 'MODE message: MODE %s' % (' '.join(params),)) 1766 1765 else: 1767 1766 if added: -
branches/isupport-aware-mode-parsing-3296/twisted/words/test/test_irc.py
r27552 r27709 884 884 885 885 886 def testISupport(self): 886 def test_ISUPPORT(self): 887 """ 888 The client parses ISUPPORT messages sent by the server and calls 889 L{IRCClient.isupport}. 890 """ 887 891 self._sendISUPPORT() 888 892 … … 1075 1079 def test_modeMissingDirection(self): 1076 1080 """ 1077 Mode strings that do not begin with a directional character, C{ +} or1078 C{ -}, have C{+} automatically prepended.1081 Mode strings that do not begin with a directional character, C{'+'} or 1082 C{'-'}, have C{'+'} automatically prepended. 1079 1083 """ 1080 1084 self._sendModeChange('s')
