X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fnetwork.h;h=e425701eaa64d4cccfbc24e0f783a13c0dd558ac;hp=190c62c078c38a5fdc569aca50285c6676689e8b;hb=4f70f02e2c9121a40e01ba9c05652d1e3bc9d5bf;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b diff --git a/src/common/network.h b/src/common/network.h index 190c62c0..e425701e 100644 --- a/src/common/network.h +++ b/src/common/network.h @@ -132,6 +132,18 @@ public : 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; } //Network::ConnectionState connectionState() const; inline int connectionState() const { return _connectionState; }