aboutsummaryrefslogtreecommitdiff
path: root/src/utils/irc/protocol.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-10 10:45:02 +0100
committerGravatar jesopo2019-06-10 10:45:02 +0100
commit6c5dc958d037907d98dd6edbc4e37f5ac39768ac (patch)
treea93470e32b894c5cca31b2caf26f763a937ea2e1 /src/utils/irc/protocol.py
parentAllow preprocess.send callbacks to request a line not be sent at all (diff)
signature
Add `.assure()` to ParsedLine, to make it immune from `.valid()`
Diffstat (limited to 'src/utils/irc/protocol.py')
-rw-r--r--src/utils/irc/protocol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc/protocol.py b/src/utils/irc/protocol.py
index 0ccf684f..66b4028c 100644
--- a/src/utils/irc/protocol.py
+++ b/src/utils/irc/protocol.py
@@ -33,7 +33,7 @@ def part(channel_name: str, reason: str=None) -> IRCLine.ParsedLine:
def quit(reason: str=None) -> IRCLine.ParsedLine:
return IRCLine.ParsedLine("QUIT", [reason] if reason else [])
-def message(target: str, message: str, tags: typing.Dict[str, str]={}
+def privmsg(target: str, message: str, tags: typing.Dict[str, str]={}
) -> IRCLine.ParsedLine:
return IRCLine.ParsedLine("PRIVMSG", [target, message], tags=tags)
def notice(target: str, message: str, tags: typing.Dict[str, str]={}