ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/modules/m_ping.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/modules/m_ping.c (file contents):
Revision 4713 by michael, Tue Oct 7 10:56:18 2014 UTC vs.
Revision 4714 by michael, Tue Oct 7 11:02:17 2014 UTC

# Line 114 | Line 114 | ms_ping(struct Client *source_p, int par
114    if (!EmptyString(destination) && irccmp(destination, me.name) && irccmp(destination, me.id))
115    {
116      if ((target_p = hash_find_server(destination)))
117 <      sendto_one(target_p, ":%s PING %s :%s",
118 <                 ID_or_name(source_p, target_p), source_p->name,
119 <                 ID_or_name(target_p, target_p));
117 >    {
118 >      if (target_p->from != source_p->from)
119 >        sendto_one(target_p, ":%s PING %s :%s",
120 >                   ID_or_name(source_p, target_p), source_p->name,
121 >                   ID_or_name(target_p, target_p));
122 >    }
123      else if (!IsDigit(*destination))
124        sendto_one_numeric(source_p, &me, ERR_NOSUCHSERVER, destination);
125    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines