From 9efd48a3bd10d72d4f9cb1823aa7fbaefaece374 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:50:28 +0000 Subject: Add server IP to /CHECK output for local users git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11638 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_check.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index f8e770337..8b3ee3edf 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -98,14 +98,17 @@ class CommandCheck : public Command user->WriteServ(checkstr + " opertype " + irc::Spacify(targuser->oper.c_str())); } - user->WriteServ(checkstr + " onip " + targuser->GetIPString()); if (IS_LOCAL(targuser)) { - user->WriteServ(checkstr + " onport " + ConvToStr(targuser->GetServerPort())); + user->WriteServ(checkstr + " clientaddr " + irc::sockets::satouser(&targuser->client_sa)); + user->WriteServ(checkstr + " serveraddr " + irc::sockets::satouser(&targuser->server_sa)); + std::string classname = targuser->GetClass()->name; if (!classname.empty()) user->WriteServ(checkstr + " connectclass " + classname); } + else + user->WriteServ(checkstr + " onip " + targuser->GetIPString()); chliststr = targuser->ChannelList(targuser); std::stringstream dump(chliststr); -- cgit v1.2.3