about summary refs log tree commit diff
path: root/tracer.py
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-03-11 14:16:17 -0400
committerBen Harris <ben@tilde.team>2020-03-11 14:16:17 -0400
commitc0b22809eab33129459a357f0a711414b1c34bf1 (patch)
tree8a96893a84db373e7d14a3e3ab7bb2140252a428 /tracer.py
parentc4a963cc174e194b2a263b7a0830e7d8c107edaf (diff)
use irctokens hostmask parser
Diffstat (limited to 'tracer.py')
-rw-r--r--tracer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracer.py b/tracer.py
index 9f59f93..b9a7f67 100644
--- a/tracer.py
+++ b/tracer.py
@@ -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":