From de4ffb180c884dbe7759180165daa947fc211c50 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sun, 16 Aug 2015 18:23:32 +0200 Subject: [PATCH] Add JoinMessage::GetKey() & SetKey() This will be useful for implementing the upcoming OnUserJoinMessage() module hook, that is allowed to modify the key. --- include/znc/Message.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/znc/Message.h b/include/znc/Message.h index 3ed2522f..de676f3a 100644 --- a/include/znc/Message.h +++ b/include/znc/Message.h @@ -107,6 +107,8 @@ public: class CJoinMessage : public CTargetMessage { public: + CString GetKey() const { return GetParam(1); } + void SetKey(const CString& sKey) { SetParam(1, sKey); } }; class CNickMessage : public CMessage {