summaryrefslogtreecommitdiffstats
path: root/firstseen.tcl
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2011-08-16 10:51:41 +0200
committerStefan Ritter <xeno@thehappy.de>2011-08-16 10:51:41 +0200
commitba46c304bdffdce0b6019a47f6759ce6abbeef90 (patch)
tree40a5b204637cb65c5bb91bd4f26a248ea498e019 /firstseen.tcl
Initial commit
Diffstat (limited to 'firstseen.tcl')
-rw-r--r--firstseen.tcl17
1 files changed, 17 insertions, 0 deletions
diff --git a/firstseen.tcl b/firstseen.tcl
new file mode 100644
index 0000000..7697cf1
--- /dev/null
+++ b/firstseen.tcl
@@ -0,0 +1,17 @@
+# lastseen by xeno
+
+bind pub - !firstseen firstseen
+
+proc firstseen {nick host hand chan arg} {
+ set arg [string trim $arg]
+if {$arg == ""} {
+ return 0
+}
+
+ set output [split "[exec perl /home/eggdrop/eggdrop/scripts/firstseen.pl logs [string trimleft $chan #] $arg]" "\n"]
+ foreach out $output {
+ putserv "PRIVMSG $chan :$out";
+ }
+}
+
+putlog "firstseen by lookshe loaded"