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:47:07 +0000 (23:47 +0100)
commit0f3c25174389b1fd411a26db79a2034c2eb0bd57
tree44686c00d38b9b5909214cd39297c8ed2bc14936
parentd8c55414437bfc76f608e44d52903178cdc8f8c8
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