commit 87c2ee73df928072c3224eb2354eb94a7ab43df0 from: Izzy Blacklock date: Sun Oct 08 17:58:28 2023 UTC quickfix for user password override - prevent creation if isstaff() commit - 9340b0c7da007489f3d495982d15274da0231c79 commit + 87c2ee73df928072c3224eb2354eb94a7ab43df0 blob - 31a1d636a82601eb62fb523378af90ef07118a37 blob + 5e870074f6348904c5c7517ef11295838eae3ca9 --- BNC.pm +++ BNC.pm @@ -192,6 +192,11 @@ sub mbnc { return; } elsif ($text =~ /^([[:alnum:]]+)\s+([[:ascii:]]+)/) { my ($username, $email) = ($1, $2); + #XXX Check if this user is staff - hotfix for bug + if (main::isstaff($bot, $username)) { + main::putserv($bot, "PRIVMSG $nick :Sorry, that account already exists"); + return; + } my @userrows = SQLite::selectrows("bnc", "username", $username); foreach my $row (@userrows) { my $password = SQLite::get("bnc", "ircid", $row->{id}, "password");