From: <cf...@us...> - 2010-01-14 11:16:54
|
Revision: 1711 http://znc.svn.sourceforge.net/znc/?rev=1711&view=rev Author: cflakes Date: 2010-01-14 11:16:48 +0000 (Thu, 14 Jan 2010) Log Message: ----------- Added a Clone() method to CNick: void Clone(const CNick& SourceNick); Patch by KiNgMaR, thanks! Modified Paths: -------------- trunk/Nick.cpp trunk/Nick.h Modified: trunk/Nick.cpp =================================================================== --- trunk/Nick.cpp 2010-01-12 20:46:52 UTC (rev 1710) +++ trunk/Nick.cpp 2010-01-14 11:16:48 UTC (rev 1711) @@ -151,3 +151,12 @@ 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; +} Modified: trunk/Nick.h =================================================================== --- trunk/Nick.h 2010-01-12 20:46:52 UTC (rev 1710) +++ trunk/Nick.h 2010-01-14 11:16:48 UTC (rev 1711) @@ -51,6 +51,8 @@ const CString& GetHost() const; CString GetNickMask() const; // !Getters + + void Clone(const CNick& SourceNick); private: protected: CString m_sChanPerms; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |