From 2466c048e26c09461b4ced2a9dfcf6d87f0e1323 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 3 Dec 2021 13:37:42 +0000 Subject: Consistently use `!foo` instead of `foo == NULL`. --- src/modules/m_hostcycle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_hostcycle.cpp') diff --git a/src/modules/m_hostcycle.cpp b/src/modules/m_hostcycle.cpp index f30b51993..6f0300c3d 100644 --- a/src/modules/m_hostcycle.cpp +++ b/src/modules/m_hostcycle.cpp @@ -73,7 +73,7 @@ class ModuleHostCycle final for (const auto& [chanuser, _] : c->GetUsers()) { LocalUser* u = IS_LOCAL(chanuser); - if (u == NULL || u == user) + if (!u || u == user) continue; if (u->already_sent == silent_id) continue; -- cgit v1.3.1-10-gc9f91