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

Comparing ircd-hybrid/trunk/modules/m_dline.c (file contents):
Revision 2475 by michael, Fri Oct 11 19:40:43 2013 UTC vs.
Revision 2807 by michael, Sun Jan 12 17:19:01 2014 UTC

# Line 165 | Line 165 | mo_dline(struct Client *client_p, struct
165  
166    if (target_server != NULL)
167    {
168 <    if (HasID(source_p))
169 <    {
170 <      sendto_server(NULL, CAP_DLN|CAP_TS6, NOCAPS,
171 <                    ":%s DLINE %s %lu %s :%s",
172 <                    source_p->id, target_server, (unsigned long)tkline_time,
173 <                    dlhost, reason);
174 <      sendto_server(NULL, CAP_DLN, CAP_TS6,
175 <                    ":%s DLINE %s %lu %s :%s",
176 <                    source_p->name, target_server, (unsigned long)tkline_time,
177 <                    dlhost, reason);
178 <    }
179 <    else
180 <      sendto_server(NULL, CAP_DLN, NOCAPS,
181 <                    ":%s DLINE %s %lu %s :%s",
182 <                    source_p->name, target_server, (unsigned long)tkline_time,
183 <                    dlhost, reason);
168 >    sendto_match_servs(source_p, target_server, CAP_DLN, "DLINE %s %lu %s :%s",
169 >                       target_server, (unsigned long)tkline_time,
170 >                       dlhost, reason);
171  
172      /* Allow ON to apply local kline as well if it matches */
173      if (match(target_server, me.name))

Diff Legend

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