diff options
Diffstat (limited to 'dialogs/joinguild.cpp')
-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() { |