Advertisement
iMix

Untitled

Feb 10th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. def GetUsersFromList(self, packet):
  2. Splitted = packet.strip(chr(0)).split(chr(0))
  3. if(len(Splitted) >= 2):
  4. for x in range(0, len(Splitted) - 1):
  5. Current = Splitted[x]
  6. if(Current.startswith('<u cb')):
  7. Attributes = ElementTree.fromstring(Current).attrib
  8. # now just use Attributes['u'] for id for example, Attributes['f'] for rank etc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement