X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferinfo.cpp;h=bea0f78d7a3295480a51ee69d1603dcf1af3a40c;hp=ae569efaad3f65db48c2aa1c478b524f451ab896;hb=e56629542168c203cac8504085fc96c7f7b73d90;hpb=5b686746c880e5cda6d5de3e08180ea4332ff222 diff --git a/src/common/bufferinfo.cpp b/src/common/bufferinfo.cpp index ae569efa..bea0f78d 100644 --- a/src/common/bufferinfo.cpp +++ b/src/common/bufferinfo.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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() << ")";