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

Comparing:
ircd-hybrid-8/modules/m_dline.c (file contents), Revision 1398 by michael, Sun May 6 10:57:06 2012 UTC vs.
ircd-hybrid/trunk/modules/m_dline.c (file contents), Revision 1618 by michael, Tue Oct 30 21:04:38 2012 UTC

# Line 62 | Line 62 | apply_tdline(struct Client *source_p, st
62    add_conf_by_address(CONF_DLINE, aconf);
63  
64  
65 <  sendto_realops_flags(UMODE_ALL, L_ALL,
65 >  sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
66                         "%s added temporary %d min. D-Line for [%s] [%s]",
67                         get_oper_name(source_p), tkline_time/60,
68                         aconf->host, aconf->reason);
# Line 148 | Line 148 | mo_dline(struct Client *client_p, struct
148    if (!HasOFlag(source_p, OPER_FLAG_DLINE))
149    {
150      sendto_one(source_p, form_str(ERR_NOPRIVS),
151 <               me.name, source_p->name, "kline");
151 >               me.name, source_p->name, "dline");
152      return;
153    }
154  
# Line 160 | Line 160 | mo_dline(struct Client *client_p, struct
160    {
161      if (HasID(source_p))
162      {
163 <      sendto_server(NULL, NULL, CAP_DLN|CAP_TS6, NOCAPS,
163 >      sendto_server(NULL, CAP_DLN|CAP_TS6, NOCAPS,
164                      ":%s DLINE %s %lu %s :%s",
165                      source_p->id, target_server, (unsigned long)tkline_time,
166                      dlhost, reason);
167 <      sendto_server(NULL, NULL, CAP_DLN, CAP_TS6,
167 >      sendto_server(NULL, CAP_DLN, CAP_TS6,
168                      ":%s DLINE %s %lu %s :%s",
169                      source_p->name, target_server, (unsigned long)tkline_time,
170                      dlhost, reason);
171      }
172      else
173 <      sendto_server(NULL, NULL, CAP_DLN, NOCAPS,
173 >      sendto_server(NULL, CAP_DLN, NOCAPS,
174                      ":%s DLINE %s %lu %s :%s",
175                      source_p->name, target_server, (unsigned long)tkline_time,
176                      dlhost, reason);
# Line 468 | Line 468 | mo_undline(struct Client *client_p, stru
468      sendto_one(source_p,
469                 ":%s NOTICE %s :Un-Dlined [%s] from temporary D-Lines",
470                 me.name, source_p->name, addr);
471 <    sendto_realops_flags(UMODE_ALL, L_ALL,
471 >    sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
472                           "%s has removed the temporary D-Line for: [%s]",
473                           get_oper_name(source_p), addr);
474      ilog(LOG_TYPE_DLINE, "%s removed temporary D-Line for [%s]",
# Line 480 | Line 480 | mo_undline(struct Client *client_p, stru
480    {
481      sendto_one(source_p, ":%s NOTICE %s :D-Line for [%s] is removed",
482                 me.name, source_p->name, addr);
483 <    sendto_realops_flags(UMODE_ALL, L_ALL,
483 >    sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
484                           "%s has removed the D-Line for: [%s]",
485                           get_oper_name(source_p), addr);
486      ilog(LOG_TYPE_DLINE, "%s removed D-Line for [%s]",
# Line 515 | Line 515 | me_undline(struct Client *client_p, stru
515        sendto_one(source_p,
516                   ":%s NOTICE %s :Un-Dlined [%s] from temporary D-Lines",
517                   me.name, source_p->name, addr);
518 <      sendto_realops_flags(UMODE_ALL, L_ALL,
518 >      sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
519                             "%s has removed the temporary D-Line for: [%s]",
520                             get_oper_name(source_p), addr);
521        ilog(LOG_TYPE_DLINE, "%s removed temporary D-Line for [%s]",
# Line 527 | Line 527 | me_undline(struct Client *client_p, stru
527      {
528        sendto_one(source_p, ":%s NOTICE %s :D-Line for [%s] is removed",
529                   me.name, source_p->name, addr);
530 <      sendto_realops_flags(UMODE_ALL, L_ALL,
530 >      sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
531                             "%s has removed the D-Line for: [%s]",
532                             get_oper_name(source_p), addr);
533        ilog(LOG_TYPE_DLINE, "%s removed D-Line for [%s]",

Diff Legend

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