2 * ircd-ratbox: A slightly useful ircd.
3 * m_kline.c: Bans/unbans a user.
5 * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
6 * Copyright (C) 1996-2002 Hybrid Development Team
7 * Copyright (C) 2002-2005 ircd-ratbox development team
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 * $Id: m_kline.c 3466 2007-05-19 23:36:51Z jilles $
32 #include "irc_string.h"
33 #include "sprintf_irc.h"
38 #include "s_newconf.h"
48 static int mo_kline(struct Client
*, struct Client
*, int, const char **);
49 static int ms_kline(struct Client
*, struct Client
*, int, const char **);
50 static int me_kline(struct Client
*, struct Client
*, int, const char **);
51 static int mo_unkline(struct Client
*, struct Client
*, int, const char **);
52 static int ms_unkline(struct Client
*, struct Client
*, int, const char **);
53 static int me_unkline(struct Client
*, struct Client
*, int, const char **);
55 struct Message kline_msgtab
= {
56 "KLINE", 0, 0, 0, MFLG_SLOW
,
57 {mg_unreg
, mg_not_oper
, {ms_kline
, 5}, {ms_kline
, 5}, {me_kline
, 5}, {mo_kline
, 3}}
60 struct Message unkline_msgtab
= {
61 "UNKLINE", 0, 0, 0, MFLG_SLOW
,
62 {mg_unreg
, mg_not_oper
, {ms_unkline
, 4}, {ms_unkline
, 4}, {me_unkline
, 3}, {mo_unkline
, 2}}
65 mapi_clist_av1 kline_clist
[] = { &kline_msgtab
, &unkline_msgtab
, NULL
};
66 DECLARE_MODULE_AV1(kline
, NULL
, NULL
, kline_clist
, NULL
, NULL
, "$Revision: 3466 $");
68 /* Local function prototypes */
69 static int find_user_host(struct Client
*source_p
, const char *userhost
, char *user
, char *host
);
70 static int valid_comment(struct Client
*source_p
, char *comment
);
71 static int valid_user_host(struct Client
*source_p
, const char *user
, const char *host
);
72 static int valid_wild_card(struct Client
*source_p
, const char *user
, const char *host
);
74 static void handle_remote_kline(struct Client
*source_p
, int tkline_time
,
75 const char *user
, const char *host
, const char *reason
);
76 static void apply_kline(struct Client
*source_p
, struct ConfItem
*aconf
,
77 const char *reason
, const char *oper_reason
, const char *current_date
);
78 static void apply_tkline(struct Client
*source_p
, struct ConfItem
*aconf
,
79 const char *, const char *, const char *, int);
80 static int already_placed_kline(struct Client
*, const char *, const char *, int);
82 static void handle_remote_unkline(struct Client
*source_p
,
83 const char *user
, const char *host
);
84 static void remove_permkline_match(struct Client
*, struct ConfItem
*);
85 static int flush_write(struct Client
*, FILE *, const char *, const char *);
86 static int remove_temp_kline(struct Client
*, struct ConfItem
*);
90 * parv[1] - temp time or user@host
91 * parv[2] - user@host, "ON", or reason
92 * parv[3] - "ON", reason, or server to target
93 * parv[4] - server to target, or reason
97 mo_kline(struct Client
*client_p
, struct Client
*source_p
,
98 int parc
, const char **parv
)
100 char def
[] = "No Reason";
101 char user
[USERLEN
+ 2];
102 char host
[HOSTLEN
+ 2];
103 char buffer
[IRCD_BUFSIZE
];
106 const char *current_date
;
107 const char *target_server
= NULL
;
108 struct ConfItem
*aconf
;
112 if(!IsOperK(source_p
))
114 sendto_one(source_p
, form_str(ERR_NOPRIVS
),
115 me
.name
, source_p
->name
, "kline");
119 if((tkline_time
= valid_temp_time(parv
[loc
])) >= 0)
121 /* we just set tkline_time to -1! */
125 if(find_user_host(source_p
, parv
[loc
], user
, host
) == 0)
130 if(parc
>= loc
+2 && !irccmp(parv
[loc
], "ON"))
132 if(!IsOperRemoteBan(source_p
))
134 sendto_one(source_p
, form_str(ERR_NOPRIVS
),
135 me
.name
, source_p
->name
, "remoteban");
139 target_server
= parv
[loc
+1];
143 if(parc
<= loc
|| EmptyString(parv
[loc
]))
145 sendto_one(source_p
, form_str(ERR_NEEDMOREPARAMS
),
146 me
.name
, source_p
->name
, "KLINE");
150 reason
= LOCAL_COPY(parv
[loc
]);
152 if(target_server
!= NULL
)
154 propagate_generic(source_p
, "KLINE", target_server
, CAP_KLN
,
156 tkline_time
, user
, host
, reason
);
158 /* If we are sending it somewhere that doesnt include us, stop */
159 if(!match(target_server
, me
.name
))
162 /* if we have cluster servers, send it to them.. */
163 else if(rb_dlink_list_length(&cluster_conf_list
) > 0)
164 cluster_generic(source_p
, "KLINE",
165 (tkline_time
> 0) ? SHARED_TKLINE
: SHARED_PKLINE
, CAP_KLN
,
167 tkline_time
, user
, host
, reason
);
169 if(!valid_user_host(source_p
, user
, host
) ||
170 !valid_wild_card(source_p
, user
, host
) ||
171 !valid_comment(source_p
, reason
))
174 if(already_placed_kline(source_p
, user
, host
, tkline_time
))
178 current_date
= smalldate();
180 aconf
->status
= CONF_KILL
;
181 aconf
->host
= rb_strdup(host
);
182 aconf
->user
= rb_strdup(user
);
185 /* Look for an oper reason */
186 if((oper_reason
= strchr(reason
, '|')) != NULL
)
191 if(!EmptyString(oper_reason
))
192 aconf
->spasswd
= rb_strdup(oper_reason
);
197 rb_snprintf(buffer
, sizeof(buffer
),
198 "Temporary K-line %d min. - %s (%s)",
199 (int) (tkline_time
/ 60), reason
, current_date
);
200 aconf
->passwd
= rb_strdup(buffer
);
201 apply_tkline(source_p
, aconf
, reason
, oper_reason
, current_date
, tkline_time
);
205 rb_snprintf(buffer
, sizeof(buffer
), "%s (%s)", reason
, current_date
);
206 aconf
->passwd
= rb_strdup(buffer
);
207 apply_kline(source_p
, aconf
, reason
, oper_reason
, current_date
);
210 if(ConfigFileEntry
.kline_delay
)
212 if(kline_queued
== 0)
214 rb_event_addonce("check_klines", check_klines_event
, NULL
,
215 ConfigFileEntry
.kline_delay
);
227 * parv[1] - server targeted at
228 * parv[2] - tkline time (0 if perm)
234 ms_kline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
236 int tkline_time
= atoi(parv
[2]);
238 /* 1.5-3 and earlier contains a bug that allows remote klines to be
239 * sent with an empty reason field. This is a protocol violation,
240 * but its not worth dropping the link over.. --anfl
242 if(parc
< 6 || EmptyString(parv
[5]))
245 propagate_generic(source_p
, "KLINE", parv
[1], CAP_KLN
,
247 tkline_time
, parv
[3], parv
[4], parv
[5]);
249 if(!match(parv
[1], me
.name
))
252 if(!IsPerson(source_p
))
255 handle_remote_kline(source_p
, tkline_time
, parv
[3], parv
[4], parv
[5]);
260 me_kline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
262 /* <tkline_time> <user> <host> :<reason> */
263 if(!IsPerson(source_p
))
266 handle_remote_kline(source_p
, atoi(parv
[1]), parv
[2], parv
[3], parv
[4]);
271 handle_remote_kline(struct Client
*source_p
, int tkline_time
,
272 const char *user
, const char *host
, const char *kreason
)
274 char buffer
[BUFSIZE
];
275 const char *current_date
;
276 char *reason
= LOCAL_COPY(kreason
);
277 struct ConfItem
*aconf
= NULL
;
280 if(!find_shared_conf(source_p
->username
, source_p
->host
,
281 source_p
->servptr
->name
,
282 (tkline_time
> 0) ? SHARED_TKLINE
: SHARED_PKLINE
))
285 if(!valid_user_host(source_p
, user
, host
) ||
286 !valid_wild_card(source_p
, user
, host
) ||
287 !valid_comment(source_p
, reason
))
290 if(already_placed_kline(source_p
, user
, host
, tkline_time
))
295 aconf
->status
= CONF_KILL
;
296 aconf
->user
= rb_strdup(user
);
297 aconf
->host
= rb_strdup(host
);
299 /* Look for an oper reason */
300 if((oper_reason
= strchr(reason
, '|')) != NULL
)
305 if(!EmptyString(oper_reason
))
306 aconf
->spasswd
= rb_strdup(oper_reason
);
309 current_date
= smalldate();
313 rb_snprintf(buffer
, sizeof(buffer
),
314 "Temporary K-line %d min. - %s (%s)",
315 (int) (tkline_time
/ 60), reason
, current_date
);
316 aconf
->passwd
= rb_strdup(buffer
);
317 apply_tkline(source_p
, aconf
, reason
, oper_reason
, current_date
, tkline_time
);
321 rb_snprintf(buffer
, sizeof(buffer
), "%s (%s)", reason
, current_date
);
322 aconf
->passwd
= rb_strdup(buffer
);
323 apply_kline(source_p
, aconf
, reason
, oper_reason
, current_date
);
326 if(ConfigFileEntry
.kline_delay
)
328 if(kline_queued
== 0)
330 rb_event_addonce("check_klines", check_klines_event
, NULL
,
331 ConfigFileEntry
.kline_delay
);
343 * parv[1] - kline to remove
344 * parv[2] - optional "ON"
345 * parv[3] - optional target server
348 mo_unkline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
353 char *h
= LOCAL_COPY(parv
[1]);
354 struct ConfItem
*aconf
;
356 if(!IsOperUnkline(source_p
))
358 sendto_one(source_p
, form_str(ERR_NOPRIVS
),
359 me
.name
, source_p
->name
, "unkline");
363 if((host
= strchr(h
, '@')) || *h
== '*' || strchr(h
, '.') || strchr(h
, ':'))
365 /* Explicit user@host mask given */
367 if(host
) /* Found user@host */
371 /* check for @host */
377 /* check for user@ */
383 user
= splat
; /* no @ found, assume its *@somehost */
389 sendto_one_notice(source_p
, ":Invalid parameters");
393 /* possible remote kline.. */
394 if((parc
> 3) && (irccmp(parv
[2], "ON") == 0))
396 if(!IsOperRemoteBan(source_p
))
398 sendto_one(source_p
, form_str(ERR_NOPRIVS
),
399 me
.name
, source_p
->name
, "remoteban");
403 propagate_generic(source_p
, "UNKLINE", parv
[3], CAP_UNKLN
,
404 "%s %s", user
, host
);
406 if(match(parv
[3], me
.name
) == 0)
409 else if(rb_dlink_list_length(&cluster_conf_list
) > 0)
410 cluster_generic(source_p
, "UNKLINE", SHARED_UNKLINE
, CAP_UNKLN
,
411 "%s %s", user
, host
);
413 aconf
= find_exact_conf_by_address(host
, CONF_KILL
, user
);
416 sendto_one_notice(source_p
, ":No K-Line for %s@%s", user
, host
);
420 if(remove_temp_kline(source_p
, aconf
))
423 remove_permkline_match(source_p
, aconf
);
430 * parv[1] - target server
431 * parv[2] - user to unkline
432 * parv[3] - host to unkline
435 ms_unkline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
437 /* parv[0] parv[1] parv[2] parv[3]
438 * oper target server user host */
439 propagate_generic(source_p
, "UNKLINE", parv
[1], CAP_UNKLN
,
440 "%s %s", parv
[2], parv
[3]);
442 if(!match(parv
[1], me
.name
))
445 if(!IsPerson(source_p
))
448 handle_remote_unkline(source_p
, parv
[2], parv
[3]);
453 me_unkline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
456 if(!IsPerson(source_p
))
459 handle_remote_unkline(source_p
, parv
[1], parv
[2]);
464 handle_remote_unkline(struct Client
*source_p
, const char *user
, const char *host
)
466 struct ConfItem
*aconf
;
468 if(!find_shared_conf(source_p
->username
, source_p
->host
,
469 source_p
->servptr
->name
, SHARED_UNKLINE
))
472 aconf
= find_exact_conf_by_address(host
, CONF_KILL
, user
);
475 sendto_one_notice(source_p
, ":No K-Line for %s@%s", user
, host
);
479 if(remove_temp_kline(source_p
, aconf
))
482 remove_permkline_match(source_p
, aconf
);
489 * side effects - kline as given, is added to the hashtable
493 apply_kline(struct Client
*source_p
, struct ConfItem
*aconf
,
494 const char *reason
, const char *oper_reason
, const char *current_date
)
496 add_conf_by_address(aconf
->host
, CONF_KILL
, aconf
->user
, aconf
);
497 write_confitem(KLINE_TYPE
, source_p
, aconf
->user
, aconf
->host
,
498 reason
, oper_reason
, current_date
, 0);
505 * side effects - tkline as given is placed
508 apply_tkline(struct Client
*source_p
, struct ConfItem
*aconf
,
509 const char *reason
, const char *oper_reason
, const char *current_date
, int tkline_time
)
511 aconf
->hold
= rb_current_time() + tkline_time
;
512 add_temp_kline(aconf
);
514 /* no oper reason.. */
515 if(EmptyString(oper_reason
))
517 sendto_realops_snomask(SNO_GENERAL
, L_ALL
,
518 "%s added temporary %d min. K-Line for [%s@%s] [%s]",
519 get_oper_name(source_p
), tkline_time
/ 60,
520 aconf
->user
, aconf
->host
, reason
);
521 ilog(L_KLINE
, "K %s %d %s %s %s",
522 get_oper_name(source_p
), tkline_time
/ 60,
523 aconf
->user
, aconf
->host
, reason
);
527 sendto_realops_snomask(SNO_GENERAL
, L_ALL
,
528 "%s added temporary %d min. K-Line for [%s@%s] [%s|%s]",
529 get_oper_name(source_p
), tkline_time
/ 60,
530 aconf
->user
, aconf
->host
, reason
, oper_reason
);
531 ilog(L_KLINE
, "K %s %d %s %s %s|%s",
532 get_oper_name(source_p
), tkline_time
/ 60,
533 aconf
->user
, aconf
->host
, reason
, oper_reason
);
536 sendto_one_notice(source_p
, ":Added temporary %d min. K-Line [%s@%s]",
537 tkline_time
/ 60, aconf
->user
, aconf
->host
);
542 * inputs - client placing kline, user@host, user buffer, host buffer
543 * output - 0 if not ok to kline, 1 to kline i.e. if valid user host
547 find_user_host(struct Client
*source_p
, const char *userhost
, char *luser
, char *lhost
)
551 hostp
= strchr(userhost
, '@');
553 if(hostp
!= NULL
) /* I'm a little user@host */
555 *(hostp
++) = '\0'; /* short and squat */
557 strlcpy(luser
, userhost
, USERLEN
+ 1); /* here is my user */
561 strlcpy(lhost
, hostp
, HOSTLEN
+ 1); /* here is my host */
567 /* no '@', no '.', so its not a user@host or host, therefore
568 * its a nick, which support was removed for.
570 if(strchr(userhost
, '.') == NULL
&& strchr(userhost
, ':') == NULL
)
573 luser
[0] = '*'; /* no @ found, assume its *@somehost */
575 strlcpy(lhost
, userhost
, HOSTLEN
+ 1);
583 * inputs - user buffer, host buffer
584 * output - 0 if invalid, 1 if valid
588 valid_user_host(struct Client
*source_p
, const char *luser
, const char *lhost
)
590 /* # is invalid, as is '!' (n!u@h kline) */
591 if(strchr(lhost
, '#') || strchr(luser
, '#') || strchr(luser
, '!'))
593 sendto_one_notice(source_p
, ":Invalid K-Line");
602 * input - user buffer, host buffer
603 * output - 0 if invalid, 1 if valid
607 valid_wild_card(struct Client
*source_p
, const char *luser
, const char *lhost
)
614 /* user has no wildcards, always accept -- jilles */
615 if (!strchr(luser
, '?') && !strchr(luser
, '*'))
618 /* check there are enough non wildcard chars */
620 while ((tmpch
= *p
++))
622 if(!IsKWildChar(tmpch
))
624 /* found enough chars, return */
625 if(++nonwild
>= ConfigFileEntry
.min_nonwildcard
)
630 /* try host, as user didnt contain enough */
631 /* special case for cidr masks -- jilles */
632 if ((p
= strrchr(lhost
, '/')) != NULL
&& IsDigit(p
[1]))
634 bitlen
= atoi(p
+ 1);
635 /* much like non-cidr for ipv6, rather arbitrary for ipv4 */
636 if (bitlen
> 0 && bitlen
>= (strchr(lhost
, ':') ? 4 * (ConfigFileEntry
.min_nonwildcard
- nonwild
) : 6 - 2 * nonwild
))
642 while ((tmpch
= *p
++))
644 if(!IsKWildChar(tmpch
))
645 if(++nonwild
>= ConfigFileEntry
.min_nonwildcard
)
650 sendto_one_notice(source_p
,
651 ":Please include at least %d non-wildcard "
652 "characters with the user@host",
653 ConfigFileEntry
.min_nonwildcard
);
659 * inputs - pointer to client
660 * - pointer to comment
661 * output - 0 if no valid comment, 1 if valid
662 * side effects - NONE
665 valid_comment(struct Client
*source_p
, char *comment
)
667 if(strchr(comment
, '"'))
669 sendto_one_notice(source_p
, ":Invalid character '\"' in comment");
673 if(strlen(comment
) > BANREASONLEN
)
674 comment
[BANREASONLEN
] = '\0';
679 /* already_placed_kline()
681 * inputs - source to notify, user@host to check, tkline time
682 * outputs - 1 if a perm kline or a tkline when a tkline is being
684 * side effects - notifies source_p kline exists
686 /* Note: This currently works if the new K-line is a special case of an
687 * existing K-line, but not the other way round. To do that we would
688 * have to walk the hash and check every existing K-line. -A1kmm.
691 already_placed_kline(struct Client
*source_p
, const char *luser
, const char *lhost
, int tkline
)
693 const char *reason
, *p
;
694 struct rb_sockaddr_storage iphost
, *piphost
;
695 struct ConfItem
*aconf
;
698 aconf
= find_exact_conf_by_address(lhost
, CONF_KILL
, luser
);
699 if (aconf
== NULL
&& ConfigFileEntry
.non_redundant_klines
)
702 if((t
= parse_netmask(lhost
, (struct sockaddr
*)&iphost
, &bits
)) != HM_HOST
)
716 aconf
= find_conf_by_address(lhost
, NULL
, NULL
, (struct sockaddr
*)piphost
, CONF_KILL
, t
, luser
);
719 /* The above was really a lookup of a single IP,
720 * so check if the new kline is wider than the
724 p
= strchr(aconf
->host
, '/');
725 if (bits
> 0 && (p
== NULL
|| bits
< atoi(p
+ 1)))
731 /* setting a tkline, or existing one is perm */
732 if(tkline
|| ((aconf
->flags
& CONF_FLAGS_TEMPORARY
) == 0))
734 reason
= aconf
->passwd
? aconf
->passwd
: "<No Reason>";
736 sendto_one_notice(source_p
,
737 ":[%s@%s] already K-Lined by [%s@%s] - %s",
738 luser
, lhost
, aconf
->user
,
739 aconf
->host
, reason
);
747 /* remove_permkline_match()
749 * hunts for a permanent kline, and removes it.
752 remove_permkline_match(struct Client
*source_p
, struct ConfItem
*aconf
)
756 int error_on_write
= NO
;
758 char matchbuf
[BUFSIZE
];
759 char temppath
[BUFSIZE
];
760 const char *filename
;
761 const char *host
, *user
;
768 rb_snprintf(temppath
, sizeof(temppath
),
769 "%s.tmp", ConfigFileEntry
.klinefile
);
771 filename
= get_conf_name(KLINE_TYPE
);
773 if((in
= fopen(filename
, "r")) == 0)
775 sendto_one_notice(source_p
, ":Cannot open %s", filename
);
780 if((out
= fopen(temppath
, "w")) == 0)
782 sendto_one_notice(source_p
, ":Cannot open %s", temppath
);
790 snprintf(matchbuf
, sizeof(matchbuf
), "\"%s\",\"%s\"", user
, host
);
791 matchlen
= strlen(matchbuf
);
793 while (fgets(buf
, sizeof(buf
), in
))
798 if(!strncasecmp(buf
, matchbuf
, matchlen
))
804 error_on_write
= flush_write(source_p
, out
, buf
, temppath
);
807 /* we dropped out of the loop early because we found a match,
808 * to drop into this somewhat faster loop as we presume we'll never
809 * have two matching klines --anfl
811 if(pairme
&& !error_on_write
)
813 while(fgets(buf
, sizeof(buf
), in
))
818 error_on_write
= flush_write(source_p
, out
, buf
, temppath
);
824 error_on_write
= YES
;
826 /* The result of the rename should be checked too... oh well */
827 /* If there was an error on a write above, then its been reported
828 * and I am not going to trash the original kline /conf file
832 sendto_one_notice(source_p
, ":Couldn't write temp kline file, aborted");
837 sendto_one_notice(source_p
, ":Cannot find K-Line for %s@%s in file",
841 (void) unlink(temppath
);
846 if (rename(temppath
, filename
))
848 sendto_one_notice(source_p
, ":Couldn't rename temp file, aborted");
852 sendto_one_notice(source_p
, ":K-Line for [%s@%s] is removed",
855 sendto_realops_snomask(SNO_GENERAL
, L_ALL
,
856 "%s has removed the K-Line for: [%s@%s]",
857 get_oper_name(source_p
), user
, host
);
859 ilog(L_KLINE
, "UK %s %s %s",
860 get_oper_name(source_p
), user
, host
);
862 /* remove_reject_mask(aconf->user, aconf->host); XXX <- gonna go on bandb */
863 delete_one_address_conf(aconf
->host
, aconf
);
871 * inputs - pointer to client structure of oper requesting unkline
872 * - out is the file descriptor
873 * - buf is the buffer to write
874 * - ntowrite is the expected number of character to be written
875 * - temppath is the temporary file name to be written
876 * output - YES for error on write
878 * side effects - if successful, the buf is written to output file
879 * if a write failure happesn, and the file pointed to
880 * by temppath, if its non NULL, is removed.
882 * The idea here is, to be as robust as possible when writing to the
889 flush_write(struct Client
*source_p
, FILE * out
, const char *buf
, const char *temppath
)
891 int error_on_write
= (fputs(buf
, out
) < 0) ? YES
: NO
;
895 sendto_one_notice(source_p
, ":Unable to write to %s",
898 (void) unlink(temppath
);
900 return (error_on_write
);
903 /* remove_temp_kline()
905 * inputs - username, hostname to unkline
907 * side effects - tries to unkline anything that matches
910 remove_temp_kline(struct Client
*source_p
, struct ConfItem
*aconf
)
915 for (i
= 0; i
< LAST_TEMP_TYPE
; i
++)
917 RB_DLINK_FOREACH(ptr
, temp_klines
[i
].head
)
919 if (aconf
== ptr
->data
)
921 sendto_one_notice(source_p
,
922 ":Un-klined [%s@%s] from temporary k-lines",
923 aconf
->user
, aconf
->host
);
924 sendto_realops_snomask(SNO_GENERAL
, L_ALL
,
925 "%s has removed the temporary K-Line for: [%s@%s]",
926 get_oper_name(source_p
), aconf
->user
, aconf
->host
);
928 ilog(L_KLINE
, "UK %s %s %s",
929 get_oper_name(source_p
),
930 aconf
->user
, aconf
->host
);
931 rb_dlinkDestroy(ptr
, &temp_klines
[i
]);
932 /* remove_reject_mask(aconf->user, aconf->host); XXX */
933 delete_one_address_conf(aconf
->host
, aconf
);