X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fnetwork.h;h=e425701eaa64d4cccfbc24e0f783a13c0dd558ac;hp=c6f8f670af86f47d7cb225eff2e51bb8f658f5cd;hb=4f70f02e2c9121a40e01ba9c05652d1e3bc9d5bf;hpb=4259bc3c5b11164245535e011a69efa6937bb6a6 diff --git a/src/common/network.h b/src/common/network.h index c6f8f670..e425701e 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; }