diff options
| author | 2023-01-10 23:02:45 +0000 | |
|---|---|---|
| committer | 2023-01-10 23:30:34 +0000 | |
| commit | b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch) | |
| tree | 3319a65d5472ec30780560003264fa815dbfd711 /src/modules/m_sajoin.cpp | |
| parent | Fix some unnecessary string copies. (diff) | |
Qualify auto correctly in all cases.
Diffstat (limited to 'src/modules/m_sajoin.cpp')
| -rw-r--r-- | src/modules/m_sajoin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp index a094b220e..100cf7186 100644 --- a/src/modules/m_sajoin.cpp +++ b/src/modules/m_sajoin.cpp @@ -52,7 +52,7 @@ public: const std::string& channel = parameters[channelindex]; const std::string& nickname = parameters.size() > 1 ? parameters[0] : user->nick; - auto dest = ServerInstance->Users.Find(nickname, true); + auto* dest = ServerInstance->Users.Find(nickname, true); if (dest) { if (user != dest && !user->HasPrivPermission("users/sajoin-others")) @@ -73,7 +73,7 @@ public: return CmdResult::FAILURE; } - auto chan = ServerInstance->Channels.Find(channel); + auto* chan = ServerInstance->Channels.Find(channel); if ((chan) && (chan->HasUser(dest))) { user->WriteRemoteNotice("*** " + dest->nick + " is already on " + channel); |
