projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24acf1e
)
Fix expression in IrcEvent::create()
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 19 Nov 2013 21:19:47 +0000
(22:19 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 19 Nov 2013 21:19:47 +0000
(22:19 +0100)
We need to inverse the mask, obviously. Thanks to Tucos for pointing
this out.
src/common/ircevent.cpp
patch
|
blob
|
history
diff --git
a/src/common/ircevent.cpp
b/src/common/ircevent.cpp
index
c002a97
..
ff481b3
100644
(file)
--- 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)