aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-16 18:43:57 +0100
committerGravatar jesopo2019-09-16 18:43:57 +0100
commit334d580c57551cb0489ff334ad5e716c7c73f93e (patch)
treef00f955c9dc83f9c8218688447b4ec2cb7d05b83 /src
parentupdate channel.topic_setter-related code (diff)
signature
'seperate_hostmask()' -> 'parse_hostmask()'
Diffstat (limited to 'src')
-rw-r--r--src/utils/irc/__init__.py4
1 files changed, 2 insertions, 2 deletions
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]