linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #05850
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2997: fix hub user command removal
------------------------------------------------------------
revno: 2997
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Fri 2012-07-13 20:11:14 +0200
message:
fix hub user command removal
modified:
dcpp/FavoriteManager.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/FavoriteManager.cpp'
--- dcpp/FavoriteManager.cpp 2012-06-28 17:27:42 +0000
+++ dcpp/FavoriteManager.cpp 2012-07-13 18:11:14 +0000
@@ -151,7 +151,7 @@
void FavoriteManager::removeHubUserCommands(int ctx, const string& hub) {
Lock l(cs);
std::remove_if(userCommands.begin(), userCommands.end(), [&](const UserCommand& uc) -> bool {
- return uc.getHub() == hub && uc.isSet(UserCommand::FLAG_NOSAVE) && uc.getCtx() == ctx;
+ return uc.getHub() == hub && uc.isSet(UserCommand::FLAG_NOSAVE) && uc.getCtx() & ctx;
});
}