mirror of
https://github.com/znc/znc.git
synced 2026-05-18 07:15:54 +02:00
+1
-1
@@ -65,7 +65,7 @@ class CUser {
|
||||
bool AddAllowedHost(const CString& sHostMask);
|
||||
bool RemAllowedHost(const CString& sHostMask);
|
||||
void ClearAllowedHosts();
|
||||
bool IsHostAllowed(const CString& sHostMask) const;
|
||||
bool IsHostAllowed(const CString& sHost) const;
|
||||
bool IsValid(CString& sErrMsg, bool bSkipPass = false) const;
|
||||
static bool IsValidUserName(const CString& sUserName);
|
||||
static CString MakeCleanUserName(const CString& sUserName);
|
||||
|
||||
@@ -83,6 +83,11 @@ class CUtils {
|
||||
static timeval ParseServerTime(const CString& sTime);
|
||||
static SCString GetTimezones();
|
||||
static SCString GetEncodings();
|
||||
/** CIDR notation checker, e.g. "192.0.2.0/24" or "2001:db8::/32"
|
||||
*
|
||||
* For historical reasons also allows wildcards, e.g. "192.168.*"
|
||||
*/
|
||||
static bool CheckCIDR(const CString& sIP, const CString& sRange);
|
||||
|
||||
/// @deprecated Use CMessage instead
|
||||
static MCString GetMessageTags(const CString& sLine);
|
||||
|
||||
Reference in New Issue
Block a user