about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tooter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tooter.py b/tooter.py
index 270be4b..6dbe28b 100644
--- a/tooter.py
+++ b/tooter.py
@@ -35,7 +35,7 @@ def think(line):
     chan = line.params.pop(0)
     words = line.params[0].split(" ")
 
-    if len(words) > 0 and irctokens.hostmask.nickname != botnick:
+    if len(words) > 0 and line.hostmask.nickname != botnick:
         if words[0] == "!toot":
             status = emoji.emojize(" ".join(words[1:]), use_aliases=True)
             print(f"{status} posted by {nick}")