diff options
Diffstat (limited to 'tooter.py')
-rw-r--r-- | tooter.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tooter.py b/tooter.py index 360a134..270be4b 100644 --- a/tooter.py +++ b/tooter.py @@ -34,9 +34,8 @@ def send(chan, msg): def think(line): chan = line.params.pop(0) words = line.params[0].split(" ") - nick = irctokens.Hostmask(line.source).nickname - if len(words) > 0 and nick != botnick: + if len(words) > 0 and irctokens.hostmask.nickname != botnick: if words[0] == "!toot": status = emoji.emojize(" ".join(words[1:]), use_aliases=True) print(f"{status} posted by {nick}") |