X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferinfo.cpp;h=5ff7f1fcb888ba8b62877ee3cd4f57e4966ae000;hp=fb6678f517c55cf133fec08a23209e60e6c20480;hb=e49189fdfac6eadbe0f4a5f46dc43c1585e847f6;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce diff --git a/src/common/bufferinfo.cpp b/src/common/bufferinfo.cpp index fb6678f5..5ff7f1fc 100644 --- a/src/common/bufferinfo.cpp +++ b/src/common/bufferinfo.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2014 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include @@ -62,6 +62,14 @@ QString BufferInfo::bufferName() const } +bool BufferInfo::acceptsRegularMessages() const +{ + if(_type == StatusBuffer || _type == InvalidBuffer) + return false; + return true; +} + + QDebug operator<<(QDebug dbg, const BufferInfo &b) { dbg.nospace() << "(bufId: " << b.bufferId() << ", netId: " << b.networkId() << ", groupId: " << b.groupId() << ", buf: " << b.bufferName() << ")";