X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.cpp;h=f5710ba2f2871ac2e69e3337a0e555eb01de7938;hp=edb2c710a1dfc104c727d3d2d20671c983a60411;hb=bd1a18355495899b5ce3003599a67e1ea7ca01cc;hpb=4aca5963302eb2f6dfc41b723df4b362704f1b2b diff --git a/src/common/ircchannel.cpp b/src/common/ircchannel.cpp index edb2c710..f5710ba2 100644 --- a/src/common/ircchannel.cpp +++ b/src/common/ircchannel.cpp @@ -33,12 +33,13 @@ #include -IrcChannel::IrcChannel(const QString &channelname, Network *network) - : SyncableObject(network), +IrcChannel::IrcChannel(const QString &channelname, Network *network) : SyncableObject(network), _initialized(false), _name(channelname), _topic(QString()), - network(network) + network(network), + _codecForEncoding(0), + _codecForDecoding(0) { setObjectName(QString::number(network->networkId().toInt()) + "/" + channelname); } @@ -124,7 +125,7 @@ QString IrcChannel::decodeString(const QByteArray &text) const { return ::decodeString(text, _codecForDecoding); } -QByteArray IrcChannel::encodeString(const QString string) const { +QByteArray IrcChannel::encodeString(const QString &string) const { if(codecForEncoding()) { return _codecForEncoding->fromUnicode(string); } @@ -244,8 +245,8 @@ void IrcChannel::ircUserDestroyed() { IrcUser *ircUser = static_cast(sender()); Q_ASSERT(ircUser); _userModes.remove(ircUser); - emit ircUserParted(ircUser); - //qDebug() << "DEST" << name() << ircUsers().count(); + // no further propagation. + // this leads only to fuck ups. } void IrcChannel::ircUserNickSet(QString nick) {