diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-10 02:37:12 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-10 02:37:12 -0500 |
commit | d573054546e9cfa323107adb94316a143333d3b5 (patch) | |
tree | 1fd9cf28e30f92c05dee67382281594105b07bd8 /dialogs | |
parent | 7969576070ca10082eaf1268d329048ad5e4d55d (diff) | |
download | abaddon-portaudio-d573054546e9cfa323107adb94316a143333d3b5.tar.gz abaddon-portaudio-d573054546e9cfa323107adb94316a143333d3b5.zip |
fix vanity urls with - not being recognized
Diffstat (limited to 'dialogs')
-rw-r--r-- | dialogs/joinguild.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dialogs/joinguild.cpp b/dialogs/joinguild.cpp index 8b7de23..5fbc6c0 100644 --- a/dialogs/joinguild.cpp +++ b/dialogs/joinguild.cpp @@ -77,7 +77,7 @@ void JoinGuildDialog::CheckCode() { } bool JoinGuildDialog::IsCode(std::string str) { - return str.length() >= 2 && std::all_of(str.begin(), str.end(), [](char c) -> bool { return std::isalnum(c); }); + return str.length() >= 2 && std::all_of(str.begin(), str.end(), [](char c) -> bool { return std::isalnum(c) || c == '-'; }); } std::string JoinGuildDialog::GetCode() { |