diff options
| author | 2022-10-01 22:09:16 +0100 | |
|---|---|---|
| committer | 2022-10-01 22:15:23 +0100 | |
| commit | ee633a943cccb5032f66eff9c1e28d633f358127 (patch) | |
| tree | 6873e5990f45302d9709728c7eb5e83ffac0339e /src/modules/m_permchannels.cpp | |
| parent | Replace *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.cpp | 2 |
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. |
