diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-02 15:04:33 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-02 15:04:33 +0000 |
commit | 455b5993eb00db383b17a928ea54be5e5ddf3600 (patch) | |
tree | 6956f07e3a2201d217638a98282f442f9224ba6e /src/modules/m_clones.cpp | |
parent | 94fd751561acbf2ea0b830df8ed21eb3b6ccdc61 (diff) |
m_clones: Only show the number of clones and IP for each entry over the limit. Showing nick+ident+host matches is really not that useful. Opers can use /check on the IP to get the information in a more beneficial way.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8613 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_clones.cpp')
-rw-r--r-- | src/modules/m_clones.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index cc89c2b58..98c901d7d 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.cpp @@ -27,15 +27,6 @@ class CommandClones : public Command syntax = "<limit>"; } - std::string FindMatchingIP(const irc::string &ipaddr) - { - std::string n = assign(ipaddr); - for (user_hash::const_iterator a = ServerInstance->clientlist->begin(); a != ServerInstance->clientlist->end(); a++) - if (a->second->GetIPString() == n) - return a->second->GetFullRealHost(); - return "<?>"; - } - CmdResult Handle (const char** parameters, int pcnt, User *user) { @@ -46,7 +37,7 @@ class CommandClones : public Command /* * Syntax of a /clones reply: * :server.name 304 target :CLONES START - * :server.name 304 target :CLONES <count> <ip> <fullhost> + * :server.name 304 target :CLONES <count> <ip> * :server.name 304 target :CHECK END */ @@ -56,7 +47,7 @@ class CommandClones : public Command for (clonemap::iterator x = ServerInstance->global_clones.begin(); x != ServerInstance->global_clones.end(); x++) { if (x->second >= limit) - user->WriteServ(clonesstr + " "+ ConvToStr(x->second) + " " + assign(x->first) + " " + FindMatchingIP(x->first)); + user->WriteServ(clonesstr + " "+ ConvToStr(x->second) + " " + assign(x->first)); } user->WriteServ(clonesstr + " END"); |