diff options
Diffstat (limited to 'spaces-240.patch')
-rw-r--r-- | spaces-240.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spaces-240.patch b/spaces-240.patch new file mode 100644 index 000000000000..e89ecd2fcd64 --- /dev/null +++ b/spaces-240.patch @@ -0,0 +1,25 @@ +diff --git a/irc/client.go b/irc/client.go +index d309102..0cafce8 100644 +--- a/irc/client.go ++++ b/irc/client.go +@@ -811,15 +811,15 @@ func (client *Client) SendRawMessage(message ircmsg.IrcMessage) error { + message = ircmsg.MakeMessage(nil, client.server.name, ERR_UNKNOWNERROR, "*", "Error assembling message for sending") + line, _ := message.Line() + +- // if we used the trailing hack, we need to strip the final space we appended earlier on +- if usedTrailingHack { +- line = line[:len(line)-3] + "\r\n" +- } +- + client.socket.Write(line) + return err + } + ++ // if we used the trailing hack, we need to strip the final space we appended earlier on ++ if usedTrailingHack { ++ line = line[:len(line)-3] + "\r\n" ++ } ++ + client.server.logger.Debug("useroutput", client.nick, " ->", strings.TrimRight(line, "\r\n")) + + client.socket.Write(line) |