From 334d580c57551cb0489ff334ad5e716c7c73f93e Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 16 Sep 2019 18:43:57 +0100 Subject: 'seperate_hostmask()' -> 'parse_hostmask()' --- src/utils/irc/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py index 0584d7c1..57c65fdb 100644 --- a/src/utils/irc/__init__.py +++ b/src/utils/irc/__init__.py @@ -30,7 +30,7 @@ def lower(case_mapping: str, s: str) -> str: def equals(case_mapping: str, s1: str, s2: str) -> bool: return lower(case_mapping, s1) == lower(case_mapping, s2) -def seperate_hostmask(hostmask: str) -> IRCLine.Hostmask: +def parse_hostmask(hostmask: str) -> IRCLine.Hostmask: nickname, _, username = hostmask.partition("!") username, _, hostname = username.partition("@") return IRCLine.Hostmask(nickname, username, hostname, hostmask) @@ -66,7 +66,7 @@ def parse_line(line: str) -> IRCLine.ParsedLine: if line[0] == ":": source_str, line = line[1:].split(" ", 1) - source = seperate_hostmask(source_str) + source = parse_hostmask(source_str) command, sep, line = line.partition(" ") args = [] # type: typing.List[str] -- cgit v1.3.1-10-gc9f91