mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add CMessage::Equals()
Compares sender, command, and parameters. Not timestamp nor tags.
This commit is contained in:
@@ -29,6 +29,13 @@ CMessage::CMessage(const CNick& Nick, const CString& sCommand, const VCString& v
|
||||
InitTime();
|
||||
}
|
||||
|
||||
bool CMessage::Equals(const CMessage& Other) const
|
||||
{
|
||||
return m_Nick.NickEquals(Other.GetNick().GetNick()) &&
|
||||
m_sCommand.Equals(Other.GetCommand()) &&
|
||||
m_vsParams == Other.GetParams();
|
||||
}
|
||||
|
||||
void CMessage::Clone(const CMessage& Message)
|
||||
{
|
||||
if (&Message != this) {
|
||||
|
||||
Reference in New Issue
Block a user