X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.cpp;h=edb2c710a1dfc104c727d3d2d20671c983a60411;hp=38959aa935ed389f02b5f51d0307d41c589a4dae;hb=4aca5963302eb2f6dfc41b723df4b362704f1b2b;hpb=6ff5ddb0b82d269df00ceb70e52f65f5fb7f8f60 diff --git a/src/common/ircchannel.cpp b/src/common/ircchannel.cpp index 38959aa9..edb2c710 100644 --- a/src/common/ircchannel.cpp +++ b/src/common/ircchannel.cpp @@ -44,7 +44,6 @@ IrcChannel::IrcChannel(const QString &channelname, Network *network) } IrcChannel::~IrcChannel() { - } // ==================== @@ -143,7 +142,7 @@ void IrcChannel::setTopic(const QString &topic) { void IrcChannel::join(IrcUser *ircuser) { if(!_userModes.contains(ircuser) && ircuser) { _userModes[ircuser] = QString(); - ircuser->joinChannel(name()); + ircuser->joinChannel(this); //qDebug() << "JOIN" << name() << ircuser->nick() << ircUsers().count(); connect(ircuser, SIGNAL(nickSet(QString)), this, SLOT(ircUserNickSet(QString))); connect(ircuser, SIGNAL(destroyed()), this, SLOT(ircUserDestroyed())); @@ -160,7 +159,7 @@ void IrcChannel::join(const QString &nick) { void IrcChannel::part(IrcUser *ircuser) { if(isKnownUser(ircuser)) { _userModes.remove(ircuser); - ircuser->partChannel(name()); + ircuser->partChannel(this); //qDebug() << "PART" << name() << ircuser->nick() << ircUsers().count(); // if you wonder why there is no counterpart to ircUserParted: // the joines are propagted by the ircuser. the signal ircUserParted is only for convenience @@ -242,7 +241,6 @@ void IrcChannel::initSetUserModes(const QVariantMap &usermodes) { } void IrcChannel::ircUserDestroyed() { - qDebug() << "IrcChannel::ircUserDestroyed()"; IrcUser *ircUser = static_cast(sender()); Q_ASSERT(ircUser); _userModes.remove(ircUser);