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

Comparing ircd-hybrid-7.2/modules/m_map.c (file contents):
Revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
Revision 268 by adx, Mon Nov 14 11:02:39 2005 UTC

# Line 65 | Line 65 | static void
65   m_map(struct Client *client_p, struct Client *source_p,
66        int parc, char *parv[])
67   {
68 +  static time_t last_used = 0;
69 +
70    if (!ConfigServerHide.flatten_links)
71    {
72 +    if (!IsOper(source_p))
73 +    {
74 +      if ((last_used + ConfigFileEntry.pace_wait) > CurrentTime)
75 +      {
76 +        /* safe enough to give this on a local connect only */
77 +        sendto_one(source_p, form_str(RPL_LOAD2HI),
78 +          me.name, source_p->name);
79 +        return;
80 +      }
81 +      else
82 +        last_used = CurrentTime;
83 +    }
84 +
85      dump_map(client_p, &me, 0, buf);
86      sendto_one(client_p, form_str(RPL_MAPEND), me.name, client_p->name);
87      return;

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)