Skip to content
Snippets Groups Projects
Commit 76911f3d authored by Alexander van Gessel's avatar Alexander van Gessel Committed by Eric S. Raymond
Browse files

Fix unicode processing


Signed-off-by: default avatarEric S. Raymond <esr@thyrsus.com>
parent 929d06ee
No related branches found
No related tags found
No related merge requests found
irker history
Repository head:
Fixed unicode processing
2.1 @ 2013-11-26
A performance improvement in the git repository hook.
Documentation polishing.
......
......@@ -348,7 +348,7 @@ class IRCServerConnection():
def ship(self, string):
"Ship a command to the server, appending CR/LF"
try:
self.socket.send(string + b'\r\n')
self.socket.send(string.encode('utf-8') + b'\r\n')
self.master.debug(2, "TO: %s" % string)
except socket.error:
self.disconnect("Connection reset by peer.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment