diff options
author | Ben Harris <ben@tilde.team> | 2020-03-12 01:07:10 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-03-12 01:07:10 -0400 |
commit | a0306cdb4cf899e47c0627bb9ee4174110aa441a (patch) | |
tree | feb2871d7ec1de284af04d005f08045637e2abe5 /tooter.py | |
parent | b61f5c43219dd0616f71f5b85b0d5dc44b8ce420 (diff) |
upgrade irctokens
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}") |