Change to roster migration example
I did have the chance to test the script yet, but it seems like that line should be outside the for loop.
This commit is contained in:
parent
a8ac115310
commit
92901637ec
@ -113,7 +113,7 @@ def on_session2(event):
|
|||||||
new_xmpp.update_roster(jid,
|
new_xmpp.update_roster(jid,
|
||||||
name = item['name'],
|
name = item['name'],
|
||||||
groups = item['groups'])
|
groups = item['groups'])
|
||||||
new_xmpp.disconnect()
|
new_xmpp.disconnect()
|
||||||
new_xmpp.add_event_handler('session_start', on_session2)
|
new_xmpp.add_event_handler('session_start', on_session2)
|
||||||
|
|
||||||
if new_xmpp.connect():
|
if new_xmpp.connect():
|
||||||
|
Loading…
Reference in New Issue
Block a user