aboutsummaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-09-29 12:01:29 +0100
committerGravatar Sadie Powell2022-09-29 12:36:01 +0100
commit89537ed2ab22fcedb25e0378bd2c18e392911c0c (patch)
tree4cdea30cb16c0a044d80ba4bab8ef9a645c90824 /src/mode.cpp
parentUse NOMINMAX on Windows and undefine error in the log header. (diff)
Fix various cases of the &* being next to the name instead of type.
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 5eca116cb..af76847ef 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -347,7 +347,7 @@ void ModeParser::ModeParamsToChangeList(User* user, ModeType type, const std::ve
continue;
}
- ModeHandler *mh = this->FindMode(modechar, type);
+ ModeHandler* mh = this->FindMode(modechar, type);
if (!mh)
{
/* No mode handler? Unknown mode character then. */
@@ -506,7 +506,7 @@ void ModeParser::ShowListModeList(User* user, Channel* chan, ModeHandler* mh)
}
}
-void ModeParser::CleanMask(std::string &mask)
+void ModeParser::CleanMask(std::string& mask)
{
auto pos_of_pling = mask.find_first_of('!');
auto pos_of_at = mask.find_first_of('@', pos_of_pling == std::string::npos ? 0 : pos_of_pling);