diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-21 23:45:08 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-21 23:45:08 +0000 |
commit | 5d03657b63b0b77edc25cd566d9aab134d930bf7 (patch) | |
tree | 64f33e61eaae31bf99db7e32ff8df7764d3fd713 /src/modules/m_check.cpp | |
parent | bbb5f6ee63b4a226e6679119a1ee8c725d7d2abc (diff) |
Move some local-only fields to LocalUser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11942 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r-- | src/modules/m_check.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 0b222ba89..51fee9fe5 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -101,12 +101,13 @@ class CommandCheck : public Command user->SendText(checkstr + " opertype " + irc::Spacify(targuser->oper.c_str())); } - if (IS_LOCAL(targuser)) + LocalUser* loctarg = IS_LOCAL(targuser); + if (loctarg) { - user->SendText(checkstr + " clientaddr " + irc::sockets::satouser(&targuser->client_sa)); - user->SendText(checkstr + " serveraddr " + irc::sockets::satouser(&targuser->server_sa)); + user->SendText(checkstr + " clientaddr " + irc::sockets::satouser(&loctarg->client_sa)); + user->SendText(checkstr + " serveraddr " + irc::sockets::satouser(&loctarg->server_sa)); - std::string classname = targuser->GetClass()->name; + std::string classname = loctarg->GetClass()->name; if (!classname.empty()) user->SendText(checkstr + " connectclass " + classname); } |