X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.cpp;h=28d6c6ed46f9d0294607f4d068dc23fc71efc4b8;hp=29b618f4e0b1a311ba20e8b0d743eec87bd41ff8;hb=1956aab57bf98ce072ed86f34785e5d7abba35a0;hpb=9b577202cff410b8a2f179fd9f3e33353e913cc7;ds=sidebyside diff --git a/src/common/ircchannel.cpp b/src/common/ircchannel.cpp index 29b618f4..28d6c6ed 100644 --- a/src/common/ircchannel.cpp +++ b/src/common/ircchannel.cpp @@ -108,7 +108,9 @@ void IrcChannel::join(IrcUser *ircuser) { _userModes[ircuser] = QString(); ircuser->joinChannel(name()); connect(ircuser, SIGNAL(destroyed()), this, SLOT(ircUserDestroyed())); - // no emit here since the join is propagated by IrcUser + // if you wonder why there is no counterpart to ircUserJoined: + // the joines are propagted by the ircuser. the signal ircUserJoined is only for convenience + emit ircUserJoined(ircuser); } } @@ -120,7 +122,9 @@ void IrcChannel::part(IrcUser *ircuser) { if(isKnownUser(ircuser)) { _userModes.remove(ircuser); ircuser->partChannel(name()); - // no emit here since the part is propagated by IrcUser + // if you wonder why there is no counterpart to ircUserParted: + // the joines are propagted by the ircuser. the signal ircUserParted is only for convenience + emit ircUserParted(ircuser); } }