/[svn]/ircd-hybrid/trunk/modules/m_undline.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/modules/m_undline.c

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

revision 4638 by michael, Sun Aug 24 10:27:40 2014 UTC revision 4639 by michael, Sun Sep 21 11:17:58 2014 UTC
# Line 164  ms_undline(struct Client *source_p, int Line 164  ms_undline(struct Client *source_p, int
164    sendto_match_servs(source_p, parv[1], CAP_UNDLN, "UNDLINE %s %s",    sendto_match_servs(source_p, parv[1], CAP_UNDLN, "UNDLINE %s %s",
165                       parv[1], parv[2]);                       parv[1], parv[2]);
166    
167    if (!IsClient(source_p) || match(parv[1], me.name))    if (match(parv[1], me.name))
168      return 0;      return 0;
169    
170    if (HasFlag(source_p, FLAGS_SERVICE) ||    if (HasFlag(source_p, FLAGS_SERVICE) ||
# Line 174  ms_undline(struct Client *source_p, int Line 174  ms_undline(struct Client *source_p, int
174    {    {
175      if (remove_dline_match(addr))      if (remove_dline_match(addr))
176      {      {
177        sendto_one_notice(source_p, &me, ":D-Line for [%s] is removed", addr);        if (IsClient(source_p))
178            sendto_one_notice(source_p, &me, ":D-Line for [%s] is removed", addr);
179        sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,        sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
180                             "%s has removed the D-Line for: [%s]",                             "%s has removed the D-Line for: [%s]",
181                             get_oper_name(source_p), addr);                             get_oper_name(source_p), addr);
182        ilog(LOG_TYPE_DLINE, "%s removed D-Line for [%s]",        ilog(LOG_TYPE_DLINE, "%s removed D-Line for [%s]",
183             get_oper_name(source_p), addr);             get_oper_name(source_p), addr);
184      }      }
185      else      else if (IsClient(source_p))
186        sendto_one_notice(source_p, &me, ":No D-Line for [%s] found", addr);        sendto_one_notice(source_p, &me, ":No D-Line for [%s] found", addr);
187    }    }
188    

Legend:
Removed from v.4638  
changed lines
  Added in v.4639

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