summaryrefslogtreecommitdiffstats
path: root/src/ClientInfo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientInfo.hpp')
-rw-r--r--src/ClientInfo.hpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ClientInfo.hpp b/src/ClientInfo.hpp
index 4a4ef0b..d176965 100644
--- a/src/ClientInfo.hpp
+++ b/src/ClientInfo.hpp
@@ -82,7 +82,18 @@ public:
inline bool operator==(const ClientInfo& other) const
{
- return other.interface == interface && other.nick == nick && (interface == Clonk ? other.pcName == pcName && other.CUID == CUID : true);
+ if(other.interface != interface)
+ {
+ return false;
+ }
+ if(interface == IRC)
+ {
+ return other.nick.compare(nick, Qt::CaseInsensitive) == 0;
+ }
+ else
+ {
+ return other.interface == interface && other.nick == nick && (interface == Clonk ? other.pcName == pcName && other.CUID == CUID : true);
+ }
}
inline bool operator!=(const ClientInfo& other) const