|
static CString | GetIP (unsigned long addr) |
|
static unsigned long | GetLongIP (const CString &sIP) |
|
static void | PrintError (const CString &sMessage) |
|
static void | PrintMessage (const CString &sMessage, bool bStrong=false) |
|
static void | PrintPrompt (const CString &sMessage) |
|
static void | PrintAction (const CString &sMessage) |
|
static void | PrintStatus (bool bSuccess, const CString &sMessage="") |
|
static CString | AskSaltedHashPassForConfig () |
| Asks password from stdin, with confirmation. More...
|
|
static CString | GetSalt () |
|
static CString | SaltedMD5Hash (const CString &sPass, const CString &sSalt) |
|
static CString | SaltedSHA256Hash (const CString &sPass, const CString &sSalt) |
|
static CString | SaltedHash (const CString &sPass, const CString &sSalt) |
|
static CString | GetPass (const CString &sPrompt) |
|
static bool | GetInput (const CString &sPrompt, CString &sRet, const CString &sDefault="", const CString &sHint="") |
|
static bool | GetBoolInput (const CString &sPrompt, bool bDefault) |
|
static bool | GetBoolInput (const CString &sPrompt, bool *pbDefault=nullptr) |
|
static bool | GetNumInput (const CString &sPrompt, unsigned int &uRet, unsigned int uMin=0, unsigned int uMax=~0, unsigned int uDefault=~0) |
|
static timeval | GetTime () |
|
static unsigned long long | GetMillTime () |
|
static void | GenerateCert (FILE *pOut, const CString &sHost="") |
|
static CString | CTime (time_t t, const CString &sTZ) |
|
static CString | FormatTime (time_t t, const CString &sFormat, const CString &sTZ) |
|
static CString | FormatTime (const timeval &tv, const CString &sFormat, const CString &sTZ) |
| Supports an additional format specifier for formatting sub-second values: More...
|
|
static CString | FormatServerTime (const timeval &tv) |
|
static timeval | ParseServerTime (const CString &sTime) |
|
static SCString | GetTimezones () |
|
static SCString | GetEncodings () |
|
static bool | CheckCIDR (const CString &sIP, const CString &sRange) |
| CIDR notation checker, e.g. More...
|
|
static MCString | GetMessageTags (const CString &sLine) |
|
static void | SetMessageTags (CString &sLine, const MCString &mssTags) |
|
Supports an additional format specifier for formatting sub-second values:
- f - sub-second fraction
- %3f - millisecond (default, if no width is specified)
- %6f - microsecond
However, note that timeval only supports microsecond precision (thus, formatting with higher-than-microsecond precision will always result in trailing zeroes), and IRC server-time is specified in millisecond precision (thus formatting received timestamps with higher-than-millisecond precision will always result in trailing zeroes).