diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/nickcollide.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/nickcollide.cpp b/src/modules/m_spanningtree/nickcollide.cpp index 9ef5b48f4..a33b77da4 100644 --- a/src/modules/m_spanningtree/nickcollide.cpp +++ b/src/modules/m_spanningtree/nickcollide.cpp @@ -49,10 +49,10 @@ int TreeSocket::DoCollision(User *u, time_t remotets, const std::string &remotei bool bChangeLocal = true; bool bChangeRemote = true; - /* for brevity, don't use the User */ - time_t localts = u->age; - const std::string localident = u->ident; - const std::string localip = u->GetIPString(); + /* for brevity, don't use the User - use defines to avoid any copy */ + #define localts u->age + #define localident u->ident + #define localip u->GetIPString() /* mmk. let's do this again. */ if (remotets == localts) |