soc.2009.transport: fd1124dc: Fixed hasResource function

hanzz at soc.pidgin.im hanzz at soc.pidgin.im
Thu Jul 2 03:10:36 EDT 2009


-----------------------------------------------------------------
Revision: fd1124dc2a92a2c8acabe3fe576243ae8e809e23
Ancestor: 80323a4be41b5f13e3bf54b0f2866e1decb9415a
Author: hanzz at soc.pidgin.im
Date: 2009-07-02T07:00:49
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/fd1124dc2a92a2c8acabe3fe576243ae8e809e23

Modified files:
        user.h

ChangeLog: 

Fixed hasResource function

-------------- next part --------------
============================================================
--- user.h	f503f466694a21d92372913b62b677da498fca60
+++ user.h	457b3b35fc6245ae24cb5130918e62b61fd4c8f1
@@ -142,7 +142,7 @@ class User {
 			if (priority != -256) m_resources[resource].priority = priority;
 			if (!caps.empty()) m_resources[resource].capsVersion = caps;
 		}
-		bool hasResource(const std::string r) {return m_resources.find(r) == m_resources.end(); }
+		bool hasResource(const std::string r) {return m_resources.find(r) != m_resources.end(); }
 		Resource & getResource(const std::string r) { return m_resources[r];}
 		
 		PurpleAccount *account() { return m_account; }


More information about the Commits mailing list