X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircuser.h;h=c33a3b2d5384fe342c94ef4f0df3a075f33bbdc0;hp=c8840ed8e0b4972d0b6cb6209cca3391b6f7d6d8;hb=e56629542168c203cac8504085fc96c7f7b73d90;hpb=56a89a792d8a32e6e365620232268ec6eb14dcc7 diff --git a/src/common/ircuser.h b/src/common/ircuser.h index c8840ed8..c33a3b2d 100644 --- a/src/common/ircuser.h +++ b/src/common/ircuser.h @@ -118,7 +118,12 @@ public slots: void setUserModes(const QString &modes); - void joinChannel(IrcChannel *channel); + /*! + * \brief joinChannel Called when user joins some channel, this function inserts the channel to internal list of channels this user is in. + * \param channel Pointer to a channel this user just joined + * \param skip_channel_join If this is false, this function will also call IrcChannel::joinIrcUser, can be set to true as a performance tweak. + */ + void joinChannel(IrcChannel *channel, bool skip_channel_join = false); void joinChannel(const QString &channelname); void partChannel(IrcChannel *channel); void partChannel(const QString &channelname);