say("no auth info for " _who)
}
+# GeoIP Lookup
+function geoip(ip, dat, cmd, line, parts) {
+ dat = "/usr/share/GeoIP/GeoIPCity.dat"
+
+ cmd = "geoiplookup -f " dat " " ip
+ cmd | getline line
+ close(cmd)
+
+ if (split(line, parts, /[:,] /) >= 9)
+ return parts[8] "," parts[9] " -- " \
+ parts[6] ", " parts[4] ", " parts[3] " -- " ip
+ else
+ return "not found -- " ip
+}
+
+/^\.geoip (([0-9a-zA-Z_.-]+) *)*$/ {
+ for (_i=2; _i<=NF; _i++)
+ say(geoip($_i))
+}
+
# Fortune
TO == NICK && /^/ { extra = "" }
TO == NICK && /^\.?fortune.*-o/ { extra = "-o" }
#say("Hello, " FROM)
}
+/^\.nestroyeti/ {
+ say(sprintf("Temperature: %4.1f F Humidity: %2d%%",
+ rand()*20+65, rand()*20+40))
+}
+
#DST != "#sfvlug" &&
!(FROM in bots) &&
CMD == "PRIVMSG" &&
# Decrementer
BEGIN {
user_scores[0] = 1;
+ delete user_scores
}
/^\.(scores|scoreboard)$/ {