Ticket #4915: Twisted-better.diff

File Twisted-better.diff, 891 bytes (added by devinj, 3 years ago)

Updated patch, now fixes irc_PRIVMSG as well.

  • Twisted/twisted/words/service.py

     
    515515            targetName = params[0].decode(self.encoding) 
    516516        except UnicodeDecodeError: 
    517517            self.sendMessage( 
    518                 irc.ERR_NOSUCHNICK, targetName, 
     518                irc.ERR_NOSUCHNICK, params[0], 
    519519                ":No such nick/channel (could not decode your unicode!)") 
    520520            return 
    521521 
     
    546546            groupName = params[0].decode(self.encoding) 
    547547        except UnicodeDecodeError: 
    548548            self.sendMessage( 
    549                 irc.IRC_NOSUCHCHANNEL, params[0], 
     549                irc.ERR_NOSUCHCHANNEL, params[0], 
    550550                ":No such channel (could not decode your unicode!)") 
    551551            return 
    552552