From: Manuel Nickschas Date: Tue, 19 Nov 2013 21:19:47 +0000 (+0100) Subject: Fix expression in IrcEvent::create() X-Git-Tag: 0.10-beta1~101 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=3dc5425d473ba3e18671020997a333358948f397 Fix expression in IrcEvent::create() We need to inverse the mask, obviously. Thanks to Tucos for pointing this out. --- 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)