From 3dc5425d473ba3e18671020997a333358948f397 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Tue, 19 Nov 2013 22:19:47 +0100 Subject: [PATCH] Fix expression in IrcEvent::create() We need to inverse the mask, obviously. Thanks to Tucos for pointing this out. --- src/common/ircevent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/ircevent.cpp b/src/common/ircevent.cpp index c002a97a..ff481b3a 100644 --- a/src/common/ircevent.cpp +++ b/src/common/ircevent.cpp @@ -22,7 +22,7 @@ Event *IrcEvent::create(EventManager::EventType type, QVariantMap &map, Network *network) { - if ((type & EventManager::IrcEventNumericMask) == EventManager::IrcEventNumeric) + if ((type & ~EventManager::IrcEventNumericMask) == EventManager::IrcEventNumeric) return new IrcEventNumeric(type, map, network); if ((type & EventManager::EventGroupMask) != EventManager::IrcEvent) -- 2.20.1