Skip to content

Commit 62fdea2

Browse files
Chris SchmitzChris Schmitz
Chris Schmitz
authored and
Chris Schmitz
committed
Strip white space from messages
1 parent fa194e1 commit 62fdea2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

irc_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ def _handle_user_input(self, input_chunk):
337337
self._client_error_handler('Must join a channel to chat')
338338
return
339339

340-
message = '{command} {args}{end}'.format(command=server_command,
341-
args=command_args,
342-
end=MESSAGE_END)
340+
message_content = '{command} {args}'.format(command=server_command,
341+
args=command_args).strip()
342+
message = message_content + MESSAGE_END
343343
return self.client_socket.send(message)
344344

345345
def _message_handler(self, message_code, message_text):

0 commit comments

Comments
 (0)