-Event *IrcEvent::create(EventManager::EventType type, QVariantMap &map, Network *network) {
- if((type & EventManager::IrcEventNumericMask) == EventManager::IrcEventNumeric)
- return new IrcEventNumeric(type, map, network);
+Event *IrcEvent::create(EventManager::EventType type, QVariantMap &map, Network *network)
+{
+ if ((type & ~EventManager::IrcEventNumericMask) == EventManager::IrcEventNumeric)
+ return new IrcEventNumeric(type, map, network);