aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_abbreviation.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-01 22:02:45 +0100
committerGravatar Sadie Powell2022-10-01 22:15:23 +0100
commitc7f6ffccbdefba86afbe20b7f4d668fff2aaecd4 (patch)
tree087572776e63e04c8f7871eba5282ab95aed180d /src/modules/m_abbreviation.cpp
parentRelease v4.0.0 alpha 15. (diff)
downloadinspircd++-c7f6ffccbdefba86afbe20b7f4d668fff2aaecd4.tar.gz
inspircd++-c7f6ffccbdefba86afbe20b7f4d668fff2aaecd4.tar.bz2
inspircd++-c7f6ffccbdefba86afbe20b7f4d668fff2aaecd4.zip
Replace *foo.rbegin() with foo.end().
Diffstat (limited to 'src/modules/m_abbreviation.cpp')
-rw-r--r--src/modules/m_abbreviation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_abbreviation.cpp b/src/modules/m_abbreviation.cpp
index 4517e6a45..7cc0deb41 100644
--- a/src/modules/m_abbreviation.cpp
+++ b/src/modules/m_abbreviation.cpp
@@ -46,7 +46,7 @@ public:
ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated) override
{
/* Command is already validated, has a length of 0, or last character is not a . */
- if (validated || command.empty() || *command.rbegin() != '.')
+ if (validated || command.empty() || command.back() != '.')
return MOD_RES_PASSTHRU;
/* Look for any command that starts with the same characters, if it does, replace the command string with it */