[xmpppy-cvs:features.py] The setPrivacyList function used a nonexistent payload variable where it should be the list param

This commit is contained in:
Nikos Kouremenos 2005-10-11 12:31:27 +00:00
parent ce2b7cad6a
commit 5c6562860a
1 changed files with 1 additions and 1 deletions

View File

@ -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):