/[svn]/ircd-hybrid/branches/8.2.x/modules/m_resv.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/modules/m_resv.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5957 by michael, Sun May 3 20:50:09 2015 UTC revision 5958 by michael, Sat May 9 21:56:02 2015 UTC
# Line 131  mo_resv(struct Client *source_p, int par Line 131  mo_resv(struct Client *source_p, int par
131    char *target_server = NULL;    char *target_server = NULL;
132    time_t tkline_time = 0;    time_t tkline_time = 0;
133    
   /* RESV #channel ON irc.server.com :abuse  
    * RESV kiddie ON irc.server.com :abuse  
    */  
134    if (!parse_aline("RESV", source_p, parc, parv, 0, &resv, NULL,    if (!parse_aline("RESV", source_p, parc, parv, 0, &resv, NULL,
135                     &tkline_time, &target_server, &reason))                     &tkline_time, &target_server, &reason))
136      return 0;      return 0;
# Line 149  mo_resv(struct Client *source_p, int par Line 146  mo_resv(struct Client *source_p, int par
146        sendto_match_servs(source_p, target_server, CAP_CLUSTER,        sendto_match_servs(source_p, target_server, CAP_CLUSTER,
147                           "RESV %s %s :%s",                           "RESV %s %s :%s",
148                           target_server, resv, reason);                           target_server, resv, reason);
149    
150      /* Allow ON to apply local resv as well if it matches */      /* Allow ON to apply local resv as well if it matches */
151      if (match(target_server, me.name))      if (match(target_server, me.name))
152        return 0;        return 0;
153    }    }
154    else    else
155    {    {
     /* RESV #channel :abuse  
      * RESV kiddie :abuse  
      */  
156      if (tkline_time)      if (tkline_time)
157        cluster_a_line(source_p, "ENCAP", CAP_ENCAP, SHARED_RESV,        cluster_a_line(source_p, "ENCAP", CAP_ENCAP, SHARED_RESV,
158                       "RESV %d %s 0 :%s", (int)tkline_time, resv, reason);                       "RESV %d %s 0 :%s", (int)tkline_time, resv, reason);

Legend:
Removed from v.5957  
changed lines
  Added in v.5958

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28