mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Search'n'replace remaining NULL occurrences (#816)
This commit is contained in:
@@ -28,7 +28,7 @@ private:
|
||||
}
|
||||
|
||||
void SetTime(const CUser *pUser) {
|
||||
SetNV(pUser->GetUserName(), CString(time(NULL)));
|
||||
SetNV(pUser->GetUserName(), CString(time(nullptr)));
|
||||
}
|
||||
|
||||
const CString FormatLastSeen(const CUser *pUser, const char* sDefault = "") {
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override {
|
||||
if (sPageName == "index") {
|
||||
CModules& GModules = CZNC::Get().GetModules();
|
||||
Tmpl["WebAdminLoaded"] = CString(GModules.FindModule("webadmin") != NULL);
|
||||
Tmpl["WebAdminLoaded"] = CString(GModules.FindModule("webadmin") != nullptr);
|
||||
|
||||
MTimeMulti mmSorted;
|
||||
const MUsers& mUsers = CZNC::Get().GetUserMap();
|
||||
|
||||
Reference in New Issue
Block a user