commit 5f3272f39d7f8d209584aa102b2e28d59dd86fe8 from: jrmu date: Wed Mar 01 20:26:18 2023 UTC Fixed installation and clarified BNC registration commit - 28a262832e241b0490813a4297c98d93e14f0376 commit + 5f3272f39d7f8d209584aa102b2e28d59dd86fe8 blob - f9b8e901def85a934f114b68d182c51f572e385f blob + 170d01d07c884f020cb3bb2f7b2cb6917212d84f --- BNC.pm +++ BNC.pm @@ -105,7 +105,7 @@ sub mbnc { if ($text =~ /^$/) { main::putserv($bot, "PRIVMSG $nick :Type !help for new instructions"); foreach my $chan (@teamchans) { - main::putservlocalnet($bot, "PRIVMSG $chan :Help *$nick* on network ".$bot->{name}); + main::putservlocalnet($bot, "PRIVMSG $chan :$staff: Help *$nick* on network ".$bot->{name}); } return; } elsif (main::isstaff($bot, $nick) && $text =~ /^delete\s+([[:ascii:]]+)/) { @@ -153,6 +153,9 @@ sub mbnc { createbnc($bot, $username, $pass, $bindhost); main::putserv($bot, "PRIVMSG $nick :Check your email!"); mailbnc($username, $email, $pass, "bouncer", $hashirc); + foreach my $chan (@teamchans) { + main::putservlocalnet($bot, "PRIVMSG $chan :$nick\'s bnc registration on $bot->{name} was successful, please help him connect"); + } #www($newnick, $reply, $password, "bouncer"); } else { foreach my $chan (@teamchans) { blob - bda74a4314dea9e359ed307732546327c8f7a894 blob + 208d0ae4a175435c79216382a30dc7c55cb7f83e --- install +++ install @@ -15,7 +15,11 @@ pkg_add figlet-2.2.5 php-8.0.8 php-sqlite p5-DBI p5-DB cc -o blowfish.o blowfish.c cp blowfish.o ${HOMEDIR}/ -useradd -m -g =uid -c ${USERNAME} -d ${HOMEDIR} -s /bin/ksh ${USERNAME} +if $(userinfo -e ${USERNAME}); then + usermod -d ${HOMEDIR} -G wheel -s /bin/ksh ${USERNAME} +else + useradd -m -g =uid -c ${USERNAME} -d ${HOMEDIR} -s /bin/ksh ${USERNAME} +fi mkdir ${HOMEDIR} chmod go-rx ${HOMEDIR} mkdir ${DATABASE}