=================================================================== RCS file: /cvs/botnow/BNC.pm,v retrieving revision 1.1 retrieving revision 1.3 diff -u -p -r1.1 -r1.3 --- botnow/BNC.pm 2021/05/15 15:12:32 1.1 +++ botnow/BNC.pm 2021/08/26 08:17:22 1.3 @@ -211,6 +211,7 @@ sub mbnc { foreach my $user (@users) { if ($user eq $username) { main::putserv($bot, "PRIVMSG $nick :Sorry, username taken. Please contact staff if you need help."); + return; } } #my $captcha = join'', map +(0..9,'a'..'z','A'..'Z')[rand(10+26*2)], 1..4; @@ -233,7 +234,7 @@ sub mbnc { main::putserv($bot, "PRIVMSG $nick :https://$hostname/register.php?hashirc=$hashid"); main::putserv($bot, "PRIVMSG $nick :Type !bnc captcha "); foreach my $chan (@teamchans) { - main::putservlocalnet($bot, "PRIVMSG $chan :$nick\'s captcha is $captcha"); + main::putservlocalnet($bot, "PRIVMSG $chan :$nick\'s on $bot->{name} bnc captcha is $captcha"); } } else { main::putserv($bot, "PRIVMSG $nick :Invalid username or email. Type !bnc to try again.");