Add function in bufferinfo.cpp to report if chat messages are accepted
authorMichael Marley <michael@michaelmarley.com>
Sat, 16 Nov 2013 18:40:54 +0000 (13:40 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 19 Nov 2013 22:42:21 +0000 (23:42 +0100)
commit0e80eb98d55efe53d280b38984426318317bcb1a
treedb764cdbaaacbf4a15742edadcf77fc5a4938643
parent9b8923e3625b5634163b5c164df8fa6a3760f660
Add function in bufferinfo.cpp to report if chat messages are accepted

This works around https://github.com/sandsmark/QuasselDroid/issues/98 on
the server side by preventing new buffers from being created if the user
accidentally (or maliciously) attempts to send chat messages in status buffers.
Previously, this would have screwed up the status buffer requiring a manual
DB query to fix.  This should be fixed in Quasseldroid quite soon, but this
patch will just ensure that the core's DB does not get corrupted by older
Quasseldroid clients if the users do not update.
src/common/bufferinfo.cpp
src/common/bufferinfo.h
src/core/coreuserinputhandler.cpp