Moved files to subdirectory
This commit is contained in:
15
legacy/utils/parsing.py
Normal file
15
legacy/utils/parsing.py
Normal file
@@ -0,0 +1,15 @@
|
||||
def parsen(user):
|
||||
step = user.split("!")
|
||||
nick = step[0]
|
||||
if len(step) == 2:
|
||||
step2 = step[1].split("@")
|
||||
if len(step2) == 2:
|
||||
ident, host = step2
|
||||
else:
|
||||
ident = nick
|
||||
host = nick
|
||||
else:
|
||||
ident = nick
|
||||
host = nick
|
||||
|
||||
return (nick, ident, host)
|
||||
Reference in New Issue
Block a user