X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreuserinputhandler.h;h=9a31f69e2c1cf074be2212600f00a1733961fa36;hp=4cb2eb843bd86e4858afeac94dc01f097b12f38b;hb=f324687be396f9ae7aea2c66a42777c5ba35f5fc;hpb=82a12eca7978598dafc059df6a2156e8899ef942 diff --git a/src/core/coreuserinputhandler.h b/src/core/coreuserinputhandler.h index 4cb2eb84..9a31f69e 100644 --- a/src/core/coreuserinputhandler.h +++ b/src/core/coreuserinputhandler.h @@ -23,6 +23,7 @@ #include "corebasichandler.h" +class Cipher; class Server; class CoreUserInputHandler : public CoreBasicHandler { @@ -77,13 +78,13 @@ protected: private: void banOrUnban(const BufferInfo &bufferInfo, const QString &text, bool ban); - void putPrivmsg(const QByteArray &target, const QByteArray &message, bool encrypted); + void putPrivmsg(const QByteArray &target, const QByteArray &message, Cipher *cipher = 0); int lastParamOverrun(const QString &cmd, const QList ¶ms); - #ifdef HAVE_QCA2 - QByteArray encrypt(const QByteArray &target, QByteArray &message); - #endif - +#ifdef HAVE_QCA2 + QByteArray encrypt(const QString &target, const QByteArray &message, bool *didEncrypt = 0) const; +#endif + struct Command { BufferInfo bufferInfo; QString command;