use irctokens hostmask parser

This commit is contained in:
Ben Harris 2020-03-11 14:16:17 -04:00
parent c4a963cc17
commit c0b22809ea
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
tracery==0.1.1
irctokens==0.4.3
irctokens==0.5.1

View File

@ -117,7 +117,7 @@ def send(chan, msg):
def think(line):
chan = line.params.pop(0)
words = line.params[0].split(" ")
nick = line.source.split("!", 1)[0]
nick = irctokens.Hostmask(line.source).nickname
if len(words) > 0 and nick != bot["nick"]:
if words[0] == "!!list":