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

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

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

revision 4984 by michael, Wed Nov 19 17:10:25 2014 UTC revision 4985 by michael, Mon Dec 8 14:46:29 2014 UTC
# Line 229  mo_kline(struct Client *source_p, int pa Line 229  mo_kline(struct Client *source_p, int pa
229    
230  /* me_kline - handle remote kline. no propagation */  /* me_kline - handle remote kline. no propagation */
231  static int  static int
232  me_kline(struct Client *source_p, int parc, char *parv[])  ms_kline(struct Client *source_p, int parc, char *parv[])
233  {  {
234    char buffer[IRCD_BUFSIZE];    char buffer[IRCD_BUFSIZE];
235    struct MaskItem *conf = NULL;    struct MaskItem *conf = NULL;
# Line 239  me_kline(struct Client *source_p, int pa Line 239  me_kline(struct Client *source_p, int pa
239    if (parc != 6 || EmptyString(parv[5]))    if (parc != 6 || EmptyString(parv[5]))
240      return 0;      return 0;
241    
242      /* parv[0]  parv[1]        parv[2]      parv[3]  parv[4]  parv[5] */
243      /* command  target_server  tkline_time  user     host     reason */
244      sendto_match_servs(source_p, parv[1], CAP_KLN, "KLINE %s %s %s %s :%s",
245                         parv[1], parv[2], parv[3], parv[4], parv[5]);
246    
247    if (match(parv[1], me.name))    if (match(parv[1], me.name))
248      return 0;      return 0;
249    
# Line 272  me_kline(struct Client *source_p, int pa Line 277  me_kline(struct Client *source_p, int pa
277    return 0;    return 0;
278  }  }
279    
 static int  
 ms_kline(struct Client *source_p, int parc, char *parv[])  
 {  
   if (parc != 6 || EmptyString(parv[5]))  
     return 0;  
   
   /* parv[0]  parv[1]        parv[2]      parv[3]  parv[4]  parv[5] */  
   /* command  target_server  tkline_time  user     host     reason */  
   sendto_match_servs(source_p, parv[1], CAP_KLN, "KLINE %s %s %s %s :%s",  
                      parv[1], parv[2], parv[3], parv[4], parv[5]);  
   
   return me_kline(source_p, parc, parv);  
 }  
   
280  static struct Message kline_msgtab =  static struct Message kline_msgtab =
281  {  {
282    "KLINE", NULL, 0, 0, 2, MAXPARA, MFLG_SLOW, 0,    "KLINE", NULL, 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
283    { m_unregistered, m_not_oper, ms_kline, me_kline, mo_kline, m_ignore }    { m_unregistered, m_not_oper, ms_kline, m_ignore, mo_kline, m_ignore }
284  };  };
285    
286  static void  static void

Legend:
Removed from v.4984  
changed lines
  Added in v.4985

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