summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_clones.cpp13
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");