parent
a0f04a9bc1
commit
ca3871e223
@ -27,7 +27,8 @@ public class RegisterCommand implements RegistrationCommand {
|
||||
@Override
|
||||
public void handleCommand(final Namespace ns, final RegistrationManager m) throws CommandException {
|
||||
final boolean voiceVerification = ns.getBoolean("voice");
|
||||
final var captcha = ns.getString("captcha").replace("signalcaptcha://", "");
|
||||
final var captchaString = ns.getString("captcha");
|
||||
final var captcha = captchaString == null ? null : captchaString.replace("signalcaptcha://", "");
|
||||
|
||||
try {
|
||||
m.register(voiceVerification, captcha);
|
||||
|
Loading…
x
Reference in New Issue
Block a user