diff --git a/Nick.cpp b/Nick.cpp index 347823dd..b84ca118 100644 --- a/Nick.cpp +++ b/Nick.cpp @@ -151,3 +151,12 @@ CString CNick::GetHostMask() const { return (sRet); } + +void CNick::Clone(const CNick& SourceNick) { + SetNick(SourceNick.GetNick()); + SetIdent(SourceNick.GetIdent()); + SetHost(SourceNick.GetHost()); + + m_sChanPerms = SourceNick.m_sChanPerms; + m_pUser = SourceNick.m_pUser; +} diff --git a/Nick.h b/Nick.h index bfdf4414..aa972e52 100644 --- a/Nick.h +++ b/Nick.h @@ -51,6 +51,8 @@ public: const CString& GetHost() const; CString GetNickMask() const; // !Getters + + void Clone(const CNick& SourceNick); private: protected: CString m_sChanPerms;