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_spanningtree/fjoin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree/fjoin.cpp') diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp index c945240f1..bc7595eb6 100644 --- a/src/modules/m_spanningtree/fjoin.cpp +++ b/src/modules/m_spanningtree/fjoin.cpp @@ -153,7 +153,7 @@ CmdResult CommandFJoin::Handle(User* srcuser, Params& params) // XXX: If the channel does not exist in the chan hash at this point, create it so the remote modes can be applied on it. // This happens to 0-user permanent channels on the losing side, because those are removed (from the chan hash, then // deleted later) as soon as the permchan mode is removed from them. - if (ServerInstance->Channels.Find(channel) == NULL) + if (!ServerInstance->Channels.Find(channel)) { chan = new Channel(channel, TS); } -- cgit v1.3.1-10-gc9f91