------------------------------------------------------------
revno: 2997
committer: poy <[email protected]>
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;
 	});
 }
 

_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to