[xmpppy-cvs:features.py] The setPrivacyList function used a nonexistent payload variable where it should be the list param
This commit is contained in:
parent
ce2b7cad6a
commit
5c6562860a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue