From: Michael Andreen Date: Mon, 26 Jul 2021 17:59:14 +0000 (+0200) Subject: Accept space in discord username X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=commitdiff_plain;h=b845a5ef6f47fb711ae84c07a04161512c30e50c Accept space in discord username --- diff --git a/Commands/Usermgm.pm b/Commands/Usermgm.pm index e530b84..f6da052 100644 --- a/Commands/Usermgm.pm +++ b/Commands/Usermgm.pm @@ -429,7 +429,7 @@ command setdiscordid => { acl => q(bot_setdiscordid) }, class extends NDIRC::Command { method execute ($c,$msg) { - my ($nick,$discordid) = $msg =~ /^(\S+) (\S+)$/ or die 'ARGS'; + my ($nick,$discordid) = $msg =~ /^(\S+) (.+#\d+)$/ or die 'ARGS'; my $dbh = $c->model; my $f = $dbh->prepare(q{SELECT uid,username FROM users WHERE username ILIKE ?});