diff options
| author | 2022-09-29 12:41:07 +0100 | |
|---|---|---|
| committer | 2022-09-29 12:54:24 +0100 | |
| commit | 44986c79769d4efc2badc5b9c3df2e75e81ac28e (patch) | |
| tree | a76512140bcf83abaf1f23e8ae7c8e1abb3ceecc /src/modules/m_spanningtree/uid.cpp | |
| parent | Fix various cases of the &* being next to the name instead of type. (diff) | |
Use auto instead of type names where the type is obvious.
Diffstat (limited to 'src/modules/m_spanningtree/uid.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/uid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp index 9fe9069a0..b954b5a8c 100644 --- a/src/modules/m_spanningtree/uid.cpp +++ b/src/modules/m_spanningtree/uid.cpp @@ -48,7 +48,7 @@ CmdResult CommandUID::HandleServer(TreeServer* remoteserver, CommandBase::Params throw ProtocolException("Invalid mode string"); // See if there is a nick collision - User* collideswith = ServerInstance->Users.FindNick(params[2]); + auto collideswith = ServerInstance->Users.FindNick(params[2]); if ((collideswith) && (collideswith->registered != REG_ALL)) { // User that the incoming user is colliding with is not fully registered, we force nick change the @@ -77,7 +77,7 @@ CmdResult CommandUID::HandleServer(TreeServer* remoteserver, CommandBase::Params /* For remote users, we pass the UUID they sent to the constructor. * If the UUID already exists User::User() throws an exception which causes this connection to be closed. */ - RemoteUser* _new = new SpanningTree::RemoteUser(params[0], remoteserver); + auto _new = new SpanningTree::RemoteUser(params[0], remoteserver); ServerInstance->Users.clientlist[params[2]] = _new; _new->nick = params[2]; _new->ChangeRealHost(params[3], false); |
