Commit Diff
Diff:
077f87d2d8857e06e3da2bb827f2e4ac8b728645
c02f98bfdc145f41a0ee4992e596f55f33270eba
Commit:
c02f98bfdc145f41a0ee4992e596f55f33270eba
Tree:
f803906e9c6d194124940469c660a8805ee59b18
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Sat Dec 12 10:26:47 2020 UTC
Message:
Fix hostmask bug
blob - a18ae11e216ff367f6576dadc984b496fc5fdf50
blob + c393f0a6ca76276e571465c1ea6971b58f7a40d7
--- Shell.pm
+++ Shell.pm
@@ -90,7 +90,7 @@ sub mshell {
}
if ($text =~ /^captcha\s+([[:alnum:]]+)/) {
my $text = $1;
- my $ircid = SQLite::id("irc", "hostmask", $hostmask, $expires);
+ my $ircid = SQLite::id("irc", "nick", $nick, $expires);
if (!defined($ircid)) { die "undefined ircid"; }
my $captcha = SQLite::get("shell", "ircid", $ircid, "captcha");
if ($text ne $captcha) {