aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-07-22 18:33:38 +0100
committerGravatar Sadie Powell2022-07-22 18:53:21 +0100
commit648f813f8c89e6e7d0ed5bda2c2149bee2babb09 (patch)
tree5357669e57bb381c80bfdbd24ed4057a99db8e5b /src/users.cpp
parentUpdate author list. (diff)
Switch from NULL to nullptr.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 9ae86f954..3e47a9aae 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -395,7 +395,7 @@ void User::Oper(std::shared_ptr<OperInfo> info)
{
Modes::ChangeList changelist;
changelist.push_add(opermh);
- ClientProtocol::Events::Mode modemsg(ServerInstance->FakeClient, NULL, localuser, changelist);
+ ClientProtocol::Events::Mode modemsg(ServerInstance->FakeClient, nullptr, localuser, changelist);
localuser->Send(modemsg);
}
@@ -462,7 +462,7 @@ void User::UnOper()
* note, order is important - this must come before modes as -o attempts
* to call UnOper. -- w00t
*/
- oper = NULL;
+ oper = nullptr;
// Remove the user from the oper list
stdalgo::vector::swaperase(ServerInstance->Users.all_opers, this);
@@ -480,7 +480,7 @@ void User::UnOper()
changelist.push_remove(mh);
}
- ServerInstance->Modes.Process(this, NULL, this, changelist);
+ ServerInstance->Modes.Process(this, nullptr, this, changelist);
ModeHandler* opermh = ServerInstance->Modes.FindMode('o', MODETYPE_USER);
if (opermh)
@@ -536,7 +536,7 @@ void LocalUser::CheckClass(bool clone_count)
bool LocalUser::CheckLines(bool doZline)
{
- const char* check[] = { "G" , "K", (doZline) ? "Z" : NULL, NULL };
+ const char* check[] = { "G" , "K", (doZline) ? "Z" : nullptr, nullptr };
if (!this->exempt)
{
@@ -566,7 +566,7 @@ void LocalUser::FullConnect()
* may put the user into a totally separate class with different restrictions! so we *must* check again.
* Don't remove this! -- w00t
*/
- connectclass = NULL;
+ connectclass = nullptr;
SetClass();
CheckClass();
CheckLines();
@@ -781,7 +781,7 @@ void LocalUser::SetClientIP(const irc::sockets::sockaddrs& sa)
ServerInstance->Users.AddClone(this);
// Recheck the connect class.
- this->connectclass = NULL;
+ this->connectclass = nullptr;
this->SetClass();
this->CheckClass();