From 5c6562860acbcd62d1170f629ec2a3a49e27d45b Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 11 Oct 2005 12:31:27 +0000 Subject: [PATCH] [xmpppy-cvs:features.py] The setPrivacyList function used a nonexistent payload variable where it should be the list param --- src/common/xmpp/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xmpp/features.py b/src/common/xmpp/features.py index 93d12709a..68f1865b7 100644 --- a/src/common/xmpp/features.py +++ b/src/common/xmpp/features.py @@ -172,7 +172,7 @@ def setPrivacyList(disp,list): """ Set the ruleset. 'list' should be the simpleXML node formatted according to RFC 3921 (XMPP-IM) (I.e. Node('list',{'name':listname},payload=[...]) ) Returns true on success.""" - resp=disp.SendAndWaitForResponse(Iq('set',NS_PRIVACY,payload=[payload])) + resp=disp.SendAndWaitForResponse(Iq('set',NS_PRIVACY,payload=[list])) if isResultNode(resp): return 1 def delPrivacyList(disp,listname):