Correct issue where messages were over-trimmed
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>
Wed, 7 Feb 2018 10:51:55 +0000 (10:51 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 6 Apr 2018 16:22:58 +0000 (18:22 +0200)
commit5e5f16b8e8557e5ac4c9feea9befef582498799d
tree40edab912d30a113565f66baf24a0821df1f4cd2
parent0c6a424fa7893ab9060fdff4c760e24aecb78981
Correct issue where messages were over-trimmed

In an attempt to correct a problem with quasseldroid multiline
messages (97a9b1646bb0d6362cef14bac3a577481cc01e49) the core started
trimming leading whitespace from lines. This broke pasting of things
like formatted code.

This commit ensures that only the splitting is done, and that we skip
empty lines when handling /SAY since they sometimes cause issues on
networks and the clients which split client-side already skip empty
lines.

Closes GH-331.

(cherry picked from commit f5abb30ac6ec8089901d686d9c2ec3387f97aaef)
src/core/coreuserinputhandler.cpp