chiark / gitweb /
Invent and use catch_logged
[ircbot] / bot.tcl
diff --git a/bot.tcl b/bot.tcl
index 0929a0f3bd98c9ffaeeeb20ddaabbc727bc8d0b5..ab788e2fc4716d957e1e1ebd0311c2bc73ab5d46 100755 (executable)
--- a/bot.tcl
+++ b/bot.tcl
@@ -18,7 +18,7 @@ proc privmsg_unlogged {prefix ischan params} {
     set chan [lindex $params 0]
     upvar #0 chan_lastactivity([irctolower $chan]) la
     set la [clock seconds]
-    catch { recordlastseen_p $prefix "talking on $chan" 1 }
+    catch_logged { recordlastseen_p $prefix "talking on $chan" 1 }
     return 1
 }