Oops, this isn't C#.

This commit is contained in:
jesopo 2018-09-13 11:50:18 +01:00
parent 8e003281b6
commit b4397071ed

View file

@ -53,7 +53,7 @@ def seperate_hostmask(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 = username.split("@", 1) username, hostname = username.split("@", 1)
else if second_delim > -1: elif second_delim > -1:
nickname, hostname = hostmask.split("@", 1) nickname, hostname = hostmask.split("@", 1)
return IRCHostmask(nickname, username, hostname, hostmask) return IRCHostmask(nickname, username, hostname, hostmask)