Utils.seperate_hostmask has been broken all this time! usernames were coming out

as nickname!username
This commit is contained in:
jesopo 2018-09-04 08:05:02 +01:00
parent d72c15c956
commit 462b0f5f0e

View file

@ -20,7 +20,7 @@ def seperate_hostmask(hostmask):
nickname = username = hostname = hostmask nickname = username = hostname = hostmask
if first_delim > -1 and second_delim > first_delim: if first_delim > -1 and second_delim > first_delim:
nickname, username = hostmask.split("!", 1) nickname, username = hostmask.split("!", 1)
username, hostname = hostmask.split("@", 1) username, hostname = username.split("@", 1)
return nickname, username, hostname return nickname, username, hostname
def get_url(url, **kwargs): def get_url(url, **kwargs):