X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmode.cpp;h=50dd05d2dbbde849c30ec6f6d52589cdb0fe3d2c;hb=cd57c162f6e3cb4bdf4c0a7d205628b11ea0628b;hp=459eb21c8ed8ed12ec66dbc157bd79202b1b22f4;hpb=4047a143fc1d16350db70c94b9ea77d79de05714;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/mode.cpp b/src/mode.cpp index 459eb21c8..50dd05d2d 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -607,7 +607,7 @@ void ModeParser::AddMode(ModeHandler* mh) if ((mh->GetModeType() == MODETYPE_USER) || (mh->IsParameterMode()) || (!mh->IsListMode())) modeid = AllocateModeId(mh->GetModeType()); - std::pair res = modehandlersbyname[mh->GetModeType()].insert(std::make_pair(mh->name, mh)); + std::pair res = modehandlersbyname[mh->GetModeType()].insert(std::make_pair(mh->name, mh)); if (!res.second) { ModeHandler* othermh = res.first->second;