summaryrefslogtreecommitdiff
path: root/dialogs
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-12-10 02:37:12 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2020-12-10 02:37:12 -0500
commitd573054546e9cfa323107adb94316a143333d3b5 (patch)
tree1fd9cf28e30f92c05dee67382281594105b07bd8 /dialogs
parent7969576070ca10082eaf1268d329048ad5e4d55d (diff)
downloadabaddon-portaudio-d573054546e9cfa323107adb94316a143333d3b5.tar.gz
abaddon-portaudio-d573054546e9cfa323107adb94316a143333d3b5.zip
fix vanity urls with - not being recognized
Diffstat (limited to 'dialogs')
-rw-r--r--dialogs/joinguild.cpp2
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() {