mirror of
https://github.com/anope/anope.git
synced 2026-06-30 12:06:38 +02:00
Replace all uses of push_back with emplace_back.
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ void Join::Run(MessageSource &source, const std::vector<Anope::string> ¶ms,
|
||||
}
|
||||
|
||||
std::list<SJoinUser> users;
|
||||
users.push_back(std::make_pair(ChannelStatus(), user));
|
||||
users.emplace_back(ChannelStatus(), user);
|
||||
|
||||
Channel *chan = Channel::Find(channel);
|
||||
SJoin(source, channel, chan ? chan->creation_time : Anope::CurTime, "", users);
|
||||
|
||||
Reference in New Issue
Block a user