mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
utils: add NetworkFromIdentity
This commit is contained in:
parent
58c16dd48d
commit
750b38d7b1
1 changed files with 3 additions and 0 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue