diff options
| author | 2024-07-13 15:29:29 +0100 | |
|---|---|---|
| committer | 2024-07-13 15:29:29 +0100 | |
| commit | 3b9e22381bac094b20daa2715fefa90978f2d465 (patch) | |
| tree | 79e354813920fa2a563d5062d6a407ed1c85f9c4 /src/modules/m_restrictmsg.cpp | |
| parent | Const correct numerichelper. (diff) | |
| download | inspircd++-3b9e22381bac094b20daa2715fefa90978f2d465.tar.gz inspircd++-3b9e22381bac094b20daa2715fefa90978f2d465.tar.bz2 inspircd++-3b9e22381bac094b20daa2715fefa90978f2d465.zip | |
Use auto when extracting the internal type of a message target.
Diffstat (limited to 'src/modules/m_restrictmsg.cpp')
| -rw-r--r-- | src/modules/m_restrictmsg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp index 1ad71341b..42a17155c 100644 --- a/src/modules/m_restrictmsg.cpp +++ b/src/modules/m_restrictmsg.cpp @@ -35,7 +35,7 @@ private: { if ((target.type == MessageTarget::TYPE_USER) && (IS_LOCAL(user))) { - User* u = target.Get<User>(); + const auto* u = target.Get<User>(); // message allowed if: // (1) the sender is opered |
