aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_permchannels.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-01 22:09:16 +0100
committerGravatar Sadie Powell2022-10-01 22:15:23 +0100
commitee633a943cccb5032f66eff9c1e28d633f358127 (patch)
tree6873e5990f45302d9709728c7eb5e83ffac0339e /src/modules/m_permchannels.cpp
parentReplace *foo.rbegin() with foo.end(). (diff)
Replace foo.erase(foo.{size|end}()-1) with foo.pop_back().
Diffstat (limited to 'src/modules/m_permchannels.cpp')
-rw-r--r--src/modules/m_permchannels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp
index 37d088934..ecd653d5e 100644
--- a/src/modules/m_permchannels.cpp
+++ b/src/modules/m_permchannels.cpp
@@ -118,7 +118,7 @@ static bool WriteDatabase(PermChannel& permchanmode, Module* mod, bool save_list
if (!params.empty())
{
// Remove the last space
- params.erase(params.end()-1);
+ params.pop_back();
// If there is at least a space in chanmodes (that is, a non-listmode has a parameter)
// insert the listmode mode letters before the space. Otherwise just append them.