[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch for botnow to verify username exists before aproval
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: Re: patch for botnow to verify username exists before aproval
- From: jrmu <jrmu@xxxxxxxxxx>
- Date: Fri, 5 May 2023 22:44:51 -0700
- To: botnow <botnow@xxxxxxxxxxxxxxx>, codeforce@xxxxxxxxxx
Thank you for this code patch izzyb, it has now been applied. My apologies for the long delay. jrmu IRCNow On Fri, Apr 14, 2023 at 01:03:17PM -0400, botnow wrote: > --- BNC.pm Sat Mar 11 21:34:28 2023 > +++ /home/botnow/BNC.pm Fri Apr 14 12:53:04 2023 > @@ -121,9 +121,13 @@ > return; > } elsif (main::isstaff($bot, $nick) && $text =~ /^approve\s+([[:ascii:]]+)/) { > my $username = $1; > - main::putserv($bot, "PRIVMSG *blockuser :unblock $username"); > - foreach my $chan (@teamchans) { > - main::putserv($bot, "PRIVMSG $chan :$username bnc approved"); > + if (SQLite::selectrows("bnc", "username", $username)) { > + main::putserv($bot, "PRIVMSG *blockuser :unblock $username"); > + foreach my $chan (@teamchans) { > + main::putserv($bot, "PRIVMSG $chan :$username bnc approved"); > + } > + } else { > + main::putserv($bot, "PRIVMSG $chan :$username hasn't requested a bnc account"); > } > return; > } elsif ($staff =~ /$nick/ && $text =~ /^cloneuser$/i) { > -- jrmu IRCNow (https://ircnow.org)
Attachment:
signature.asc
Description: PGP signature