X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresession.h;h=c4de8cc91e2418123e2628ce2b0ea7e1093d7b8c;hp=950dfb25df4ee2742c727c51fdad6293c452e6a7;hb=c1722505b4906fe59c48aad54e6545a17afb78d7;hpb=be04b68a0f10891b81c07cdda204a9abc0ac56a7 diff --git a/src/core/coresession.h b/src/core/coresession.h index 950dfb25..c4de8cc9 100644 --- a/src/core/coresession.h +++ b/src/core/coresession.h @@ -131,10 +131,17 @@ public slots: void changePassword(PeerPtr peer, const QString &userName, const QString &oldPassword, const QString &newPassword); + void kickClient(int peerId); + QHash persistentChannels(NetworkId) const; - //! Marks us away (or unaway) on all networks - void globalAway(const QString &msg = QString()); + /** + * Marks us away (or unaway) on all networks + * + * @param[in] msg Away message, or blank to set unaway + * @param[in] skipFormatting If true, skip timestamp formatting codes (e.g. if already done) + */ + void globalAway(const QString &msg = QString(), const bool skipFormatting = false); signals: void initialized(); @@ -219,6 +226,13 @@ private: QScriptEngine *scriptEngine; + /** + * This method obtains the prefixes of the message's sender within a channel, by looking up their channelmodes, and + * processing them to prefixes based on the network's settings. + * @param sender The hostmask of the sender + * @param bufferInfo The BufferInfo object of the buffer + */ + QString senderPrefixes(const QString &sender, const BufferInfo &bufferInfo) const; QList _messageQueue; bool _processMessages; CoreIgnoreListManager _ignoreListManager;