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

Comparing ircd-hybrid/branches/8.2.x/modules/m_undline.c (file contents):
Revision 4639 by michael, Sun Aug 24 10:24:47 2014 UTC vs.
Revision 4640 by michael, Sun Sep 21 11:18:20 2014 UTC

# Line 164 | Line 164 | ms_undline(struct Client *source_p, int
164    sendto_match_servs(source_p, parv[1], CAP_UNDLN, "UNDLINE %s %s",
165                       parv[1], parv[2]);
166  
167 <  if (!IsClient(source_p) || match(parv[1], me.name))
167 >  if (match(parv[1], me.name))
168      return 0;
169  
170    if (HasFlag(source_p, FLAGS_SERVICE) ||
# Line 174 | Line 174 | ms_undline(struct Client *source_p, int
174    {
175      if (remove_dline_match(addr))
176      {
177 <      sendto_one_notice(source_p, &me, ":D-Line for [%s] is removed", addr);
177 >      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,
180                             "%s has removed the D-Line for: [%s]",
181                             get_oper_name(source_p), addr);
182        ilog(LOG_TYPE_DLINE, "%s removed D-Line for [%s]",
183             get_oper_name(source_p), addr);
184      }
185 <    else
185 >    else if (IsClient(source_p))
186        sendto_one_notice(source_p, &me, ":No D-Line for [%s] found", addr);
187    }
188  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines