utils: add NetworkFromIdentity

This commit is contained in:
moneromooo 2015-04-10 18:35:51 +01:00
parent 58c16dd48d
commit 750b38d7b1

View file

@ -387,6 +387,9 @@ def IdentityFromString(link,s):
nick=parts[1]
return network.name+':'+network.canonicalize(nick)
def NetworkFromIdentity(identity):
return identity.split(':')[0]
def NickFromIdentity(identity):
return identity.split(':')[1]