mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 22:37:04 +00:00
[6842] More correct guid/name arg processing in .pdump write command, reject early wrong player name in HandleWhoisOpcode.
This commit is contained in:
parent
809bd7392f
commit
2da935ecc4
4 changed files with 29 additions and 7 deletions
|
|
@ -170,9 +170,19 @@ inline bool isEastAsianCharacter(wchar_t wchar)
|
|||
return false;
|
||||
}
|
||||
|
||||
inline bool isNumeric(wchar_t wchar)
|
||||
{
|
||||
return (wchar >= L'0' && wchar <=L'9');
|
||||
}
|
||||
|
||||
inline bool isNumeric(char c)
|
||||
{
|
||||
return (c >= '0' && c <='9');
|
||||
}
|
||||
|
||||
inline bool isNumericOrSpace(wchar_t wchar)
|
||||
{
|
||||
return (wchar >= L'0' && wchar <=L'9') || wchar == L' ';
|
||||
return isNumeric(wchar) || wchar == L' ';
|
||||
}
|
||||
|
||||
inline bool isBasicLatinString(std::wstring wstr, bool numericOrSpace)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "6841"
|
||||
#define REVISION_NR "6842"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue