Don't allow newlines in buffer names
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 8 Feb 2016 20:29:14 +0000 (21:29 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 8 Feb 2016 21:31:19 +0000 (22:31 +0100)
commit7bcfdef0b4e6d47b01b3708e2ee9f749522f74b5
treef797af93a10419f83bbc64e5ffbec1f2bf9d0f76
parent19e4ebd2227c47b98a060e3c8d5bad40d29dbeb9
Don't allow newlines in buffer names

Since it is possible to enter newlines when renaming a buffer via
the GUI, we need to have a sanity check that cuts off the additional
lines.

Fixes #1389.
src/client/networkmodel.cpp