X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fnetwork.h;h=55e953aca221a13408e21d531c78d4315c80150a;hp=c6f8f670af86f47d7cb225eff2e51bb8f658f5cd;hb=91e19c05228aaba95ef27b580b35fc6ed2af7517;hpb=6ca69e6cd11711b36f30c952ba3df6fff29a38f1 diff --git a/src/common/network.h b/src/common/network.h index c6f8f670..55e953ac 100644 --- a/src/common/network.h +++ b/src/common/network.h @@ -131,6 +131,17 @@ public : inline bool isMe(IrcUser *ircuser) const { return (ircuser->nick().toLower() == myNick().toLower()); } bool isChannelName(const QString &channelname) const; + + /** + * Checks if the target counts as a STATUSMSG + * + * Status messages are prefixed with one or more characters from the server-provided STATUSMSG + * if available, otherwise "@" and "+" are assumed. Generally, status messages sent to a + * channel are only visible to those with the same or higher permissions, e.g. voiced. + * + * @param[in] target Name of destination, e.g. a channel or query + * @returns True if a STATUSMSG, otherwise false + */ bool isStatusMsg(const QString &target) const; inline bool isConnected() const { return _connected; } @@ -258,6 +269,12 @@ public slots: inline void initSetServerList(const QVariantList &serverList) { _serverList = fromVariantList(serverList); } virtual void initSetIrcUsersAndChannels(const QVariantMap &usersAndChannels); + /** + * Update IrcUser hostmask and username from mask, creating an IrcUser if one does not exist. + * + * @param[in] mask Full nick!user@hostmask string + * @return IrcUser of the matching nick if exists, otherwise a new IrcUser + */ IrcUser *updateNickFromMask(const QString &mask); // these slots are to keep the hashlists of all users and the