|
|
|
@ -109,3 +109,23 @@ IRCPrefix IRCPrefix::fromNickname(const std::string& nickname) |
|
|
|
|
p.m_nickname = nickname; |
|
|
|
|
return p; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool IRCPrefix::operator!=(const IRCPrefix& other) |
|
|
|
|
{ |
|
|
|
|
return other.type() != m_type || other.toString() != toString(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool IRCPrefix::operator==(const IRCPrefix& other) |
|
|
|
|
{ |
|
|
|
|
return other.type() == m_type && other.toString() == toString(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool operator!=(const IRCPrefix& lhs, const IRCPrefix& rhs) |
|
|
|
|
{ |
|
|
|
|
return lhs.type() != rhs.type() || lhs.toString() != rhs.toString(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool operator==(const IRCPrefix& lhs, const IRCPrefix& rhs) |
|
|
|
|
{ |
|
|
|
|
return lhs.type() == rhs.type() && lhs.toString() == rhs.toString(); |
|
|
|
|
} |
|
|
|
|