summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-12 17:19:20 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-12 17:19:20 +0000
commit7bd87f935c1c0ea11bff788f87da13526b9b9d58 (patch)
tree041fd81308feeb493e114738a9aebde3fb8ebe96 /modules
parent33d9fd10a4e60e418023ca1b771b56c7820b0e8f (diff)
- m_dline.c:mo_dline(). if a target server exists, use sendto_match_servs()
instead of sendto_server() git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2808 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r--modules/m_dline.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/modules/m_dline.c b/modules/m_dline.c
index 1df92ef..b89de45 100644
--- a/modules/m_dline.c
+++ b/modules/m_dline.c
@@ -165,22 +165,9 @@ mo_dline(struct Client *client_p, struct Client *source_p,
if (target_server != NULL)
{
- if (HasID(source_p))
- {
- sendto_server(NULL, CAP_DLN|CAP_TS6, NOCAPS,
- ":%s DLINE %s %lu %s :%s",
- source_p->id, target_server, (unsigned long)tkline_time,
- dlhost, reason);
- sendto_server(NULL, CAP_DLN, CAP_TS6,
- ":%s DLINE %s %lu %s :%s",
- source_p->name, target_server, (unsigned long)tkline_time,
- dlhost, reason);
- }
- else
- sendto_server(NULL, CAP_DLN, NOCAPS,
- ":%s DLINE %s %lu %s :%s",
- source_p->name, target_server, (unsigned long)tkline_time,
- dlhost, reason);
+ sendto_match_servs(source_p, target_server, CAP_DLN, "DLINE %s %lu %s :%s",
+ target_server, (unsigned long)tkline_time,
+ dlhost, reason);
/* Allow ON to apply local kline as well if it matches */
if (match(target_server, me.name))