summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:50:28 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:50:28 +0000
commit9efd48a3bd10d72d4f9cb1823aa7fbaefaece374 (patch)
tree0c162bc009175b967696a81580bd28cfe95bb7c6 /src
parent1662f21eedf91c49ac97333f72f494c36895803e (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_check.cpp7
1 files changed, 5 insertions, 2 deletions
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);