/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
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)