Rework message splitting to properly handle encrypted messages
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 5 Aug 2010 09:05:42 +0000 (11:05 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 5 Aug 2010 09:05:42 +0000 (11:05 +0200)
commite670ca6e245c9e1044879b12afb1a7a38667b264
tree64981c3bcc2bf3710244db9e51ef72c871635997
parent14281719026a2d9d30667f63f3659c2c4e7e0cca
Rework message splitting to properly handle encrypted messages

Since cutting off a crypted message produces garbage, and we can't reliably predict
how long the encrypted version will be in relation to the cleartext string, we need
to do some extra trickery in the message splitting code.

As a side effect, the split char now also remains on the previous line, which is
aesthetically way more pleasing than starting a line with a space or punctuation.
trickery for this case. Since
src/core/coreuserinputhandler.cpp
src/core/coreuserinputhandler.h