Commit 814f3d2e authored by Max Rees's avatar Max Rees
Browse files

modules/seen: use server casefolding settings

note that this explicitly doesn't handle changes in the server's
casefolding settings, or migrations from old "seen" databases to the new
casefolding version.

maybe in the future the casefolding setting can be saved in the database
and then re-folded on startup, but idgaf rn
parent d429eec8
......@@ -37,13 +37,14 @@ BEGIN {
}
irc_nick && irc_msg {
SEEN[irc_nick] = systime()
if (SEEN[irc_nick] - SEEN_LAST_SAVE > SEEN_SAVE_INTERVAL)
_seen_nick = irc_tolower(irc_nick)
SEEN[_seen_nick] = systime()
if (SEEN[_seen_nick] - SEEN_LAST_SAVE > SEEN_SAVE_INTERVAL)
seen_save_db()
}
irc_cmd == "seen" {
seen_get(irc_msgv[2])
seen_get(irc_tolower(irc_msgv[2]))
next
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment