-QDebug operator<<(QDebug dbg, const BufferInfo &b) {
- dbg.nospace() << "(bufId: " << b.bufferId() << ", netId: " << b.networkId() << ", groupId: " << b.groupId() << ", buf: " << b.bufferName() << ")";
- return dbg.space();
+
+QString BufferInfo::bufferName() const
+{
+ if (isChannelName(_bufferName))
+ return _bufferName;
+ else
+ return nickFromMask(_bufferName); // FIXME get rid of global functions and use the Network stuff instead!
+}
+
+
+bool BufferInfo::acceptsRegularMessages() const
+{
+ if(_type == StatusBuffer || _type == InvalidBuffer)
+ return false;
+ return true;