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 $
37 #include "s_newconf.h"
47 static int mo_kline(struct Client
*, struct Client
*, int, const char **);
48 static int ms_kline(struct Client
*, struct Client
*, int, const char **);
49 static int me_kline(struct Client
*, struct Client
*, int, const char **);
50 static int mo_unkline(struct Client
*, struct Client
*, int, const char **);
51 static int ms_unkline(struct Client
*, struct Client
*, int, const char **);
52 static int me_unkline(struct Client
*, struct Client
*, int, const char **);
54 struct Message kline_msgtab
= {
55 "KLINE", 0, 0, 0, MFLG_SLOW
,
56 {mg_unreg
, mg_not_oper
, {ms_kline
, 5}, {ms_kline
, 5}, {me_kline
, 5}, {mo_kline
, 3}}
59 struct Message unkline_msgtab
= {
60 "UNKLINE", 0, 0, 0, MFLG_SLOW
,
61 {mg_unreg
, mg_not_oper
, {ms_unkline
, 4}, {ms_unkline
, 4}, {me_unkline
, 3}, {mo_unkline
, 2}}
64 mapi_clist_av1 kline_clist
[] = { &kline_msgtab
, &unkline_msgtab
, NULL
};
65 DECLARE_MODULE_AV1(kline
, NULL
, NULL
, kline_clist
, NULL
, NULL
, "$Revision: 3466 $");
67 /* Local function prototypes */
68 static int find_user_host(struct Client
*source_p
, const char *userhost
, char *user
, char *host
);
69 static int valid_comment(struct Client
*source_p
, char *comment
);
70 static int valid_user_host(struct Client
*source_p
, const char *user
, const char *host
);
71 static int valid_wild_card(struct Client
*source_p
, const char *user
, const char *host
);
73 static void handle_remote_kline(struct Client
*source_p
, int tkline_time
,
74 const char *user
, const char *host
, const char *reason
);
75 static void apply_kline(struct Client
*source_p
, struct ConfItem
*aconf
,
76 const char *reason
, const char *oper_reason
, const char *current_date
);
77 static void apply_tkline(struct Client
*source_p
, struct ConfItem
*aconf
,
78 const char *, const char *, const char *, int);
79 static int already_placed_kline(struct Client
*, const char *, const char *, int);
81 static void handle_remote_unkline(struct Client
*source_p
,
82 const char *user
, const char *host
);
83 static void remove_permkline_match(struct Client
*, struct ConfItem
*);
84 static int flush_write(struct Client
*, FILE *, const char *, const char *);
85 static int remove_temp_kline(struct Client
*, struct ConfItem
*);
89 * parv[1] - temp time or user@host
90 * parv[2] - user@host, "ON", or reason
91 * parv[3] - "ON", reason, or server to target
92 * parv[4] - server to target, or reason
96 mo_kline(struct Client
*client_p
, struct Client
*source_p
,
97 int parc
, const char **parv
)
99 char def
[] = "No Reason";
100 char user
[USERLEN
+ 2];
101 char host
[HOSTLEN
+ 2];
102 char buffer
[IRCD_BUFSIZE
];
105 const char *current_date
;
106 const char *target_server
= NULL
;
107 struct ConfItem
*aconf
;
111 if(!IsOperK(source_p
))
113 sendto_one(source_p
, form_str(ERR_NOPRIVS
),
114 me
.name
, source_p
->name
, "kline");
118 if((tkline_time
= valid_temp_time(parv
[loc
])) >= 0)
120 /* we just set tkline_time to -1! */
124 if(find_user_host(source_p
, parv
[loc
], user
, host
) == 0)
129 if(parc
>= loc
+2 && !irccmp(parv
[loc
], "ON"))
131 if(!IsOperRemoteBan(source_p
))
133 sendto_one(source_p
, form_str(ERR_NOPRIVS
),
134 me
.name
, source_p
->name
, "remoteban");
138 target_server
= parv
[loc
+1];
142 if(parc
<= loc
|| EmptyString(parv
[loc
]))
144 sendto_one(source_p
, form_str(ERR_NEEDMOREPARAMS
),
145 me
.name
, source_p
->name
, "KLINE");
149 reason
= LOCAL_COPY(parv
[loc
]);
151 if(target_server
!= NULL
)
153 propagate_generic(source_p
, "KLINE", target_server
, CAP_KLN
,
155 tkline_time
, user
, host
, reason
);
157 /* If we are sending it somewhere that doesnt include us, stop */
158 if(!match(target_server
, me
.name
))
161 /* if we have cluster servers, send it to them.. */
162 else if(rb_dlink_list_length(&cluster_conf_list
) > 0)
163 cluster_generic(source_p
, "KLINE",
164 (tkline_time
> 0) ? SHARED_TKLINE
: SHARED_PKLINE
, CAP_KLN
,
166 tkline_time
, user
, host
, reason
);
168 if(!valid_user_host(source_p
, user
, host
) ||
169 !valid_wild_card(source_p
, user
, host
) ||
170 !valid_comment(source_p
, reason
))
173 if(already_placed_kline(source_p
, user
, host
, tkline_time
))
177 current_date
= smalldate();
179 aconf
->status
= CONF_KILL
;
180 aconf
->host
= rb_strdup(host
);
181 aconf
->user
= rb_strdup(user
);
184 /* Look for an oper reason */
185 if((oper_reason
= strchr(reason
, '|')) != NULL
)
190 if(!EmptyString(oper_reason
))
191 aconf
->spasswd
= rb_strdup(oper_reason
);
196 rb_snprintf(buffer
, sizeof(buffer
),
197 "Temporary K-line %d min. - %s (%s)",
198 (int) (tkline_time
/ 60), reason
, current_date
);
199 aconf
->passwd
= rb_strdup(buffer
);
200 apply_tkline(source_p
, aconf
, reason
, oper_reason
, current_date
, tkline_time
);
204 rb_snprintf(buffer
, sizeof(buffer
), "%s (%s)", reason
, current_date
);
205 aconf
->passwd
= rb_strdup(buffer
);
206 apply_kline(source_p
, aconf
, reason
, oper_reason
, current_date
);
209 if(ConfigFileEntry
.kline_delay
)
211 if(kline_queued
== 0)
213 rb_event_addonce("check_klines", check_klines_event
, NULL
,
214 ConfigFileEntry
.kline_delay
);
226 * parv[1] - server targeted at
227 * parv[2] - tkline time (0 if perm)
233 ms_kline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
235 int tkline_time
= atoi(parv
[2]);
237 /* 1.5-3 and earlier contains a bug that allows remote klines to be
238 * sent with an empty reason field. This is a protocol violation,
239 * but its not worth dropping the link over.. --anfl
241 if(parc
< 6 || EmptyString(parv
[5]))
244 propagate_generic(source_p
, "KLINE", parv
[1], CAP_KLN
,
246 tkline_time
, parv
[3], parv
[4], parv
[5]);
248 if(!match(parv
[1], me
.name
))
251 if(!IsPerson(source_p
))
254 handle_remote_kline(source_p
, tkline_time
, parv
[3], parv
[4], parv
[5]);
259 me_kline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
261 /* <tkline_time> <user> <host> :<reason> */
262 if(!IsPerson(source_p
))
265 handle_remote_kline(source_p
, atoi(parv
[1]), parv
[2], parv
[3], parv
[4]);
270 handle_remote_kline(struct Client
*source_p
, int tkline_time
,
271 const char *user
, const char *host
, const char *kreason
)
273 char buffer
[BUFSIZE
];
274 const char *current_date
;
275 char *reason
= LOCAL_COPY(kreason
);
276 struct ConfItem
*aconf
= NULL
;
279 if(!find_shared_conf(source_p
->username
, source_p
->host
,
280 source_p
->servptr
->name
,
281 (tkline_time
> 0) ? SHARED_TKLINE
: SHARED_PKLINE
))
284 if(!valid_user_host(source_p
, user
, host
) ||
285 !valid_wild_card(source_p
, user
, host
) ||
286 !valid_comment(source_p
, reason
))
289 if(already_placed_kline(source_p
, user
, host
, tkline_time
))
294 aconf
->status
= CONF_KILL
;
295 aconf
->user
= rb_strdup(user
);
296 aconf
->host
= rb_strdup(host
);
298 /* Look for an oper reason */
299 if((oper_reason
= strchr(reason
, '|')) != NULL
)
304 if(!EmptyString(oper_reason
))
305 aconf
->spasswd
= rb_strdup(oper_reason
);
308 current_date
= smalldate();
312 rb_snprintf(buffer
, sizeof(buffer
),
313 "Temporary K-line %d min. - %s (%s)",
314 (int) (tkline_time
/ 60), reason
, current_date
);
315 aconf
->passwd
= rb_strdup(buffer
);
316 apply_tkline(source_p
, aconf
, reason
, oper_reason
, current_date
, tkline_time
);
320 rb_snprintf(buffer
, sizeof(buffer
), "%s (%s)", reason
, current_date
);
321 aconf
->passwd
= rb_strdup(buffer
);
322 apply_kline(source_p
, aconf
, reason
, oper_reason
, current_date
);
325 if(ConfigFileEntry
.kline_delay
)
327 if(kline_queued
== 0)
329 rb_event_addonce("check_klines", check_klines_event
, NULL
,
330 ConfigFileEntry
.kline_delay
);
342 * parv[1] - kline to remove
343 * parv[2] - optional "ON"
344 * parv[3] - optional target server
347 mo_unkline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
352 char *h
= LOCAL_COPY(parv
[1]);
353 struct ConfItem
*aconf
;
355 if(!IsOperUnkline(source_p
))
357 sendto_one(source_p
, form_str(ERR_NOPRIVS
),
358 me
.name
, source_p
->name
, "unkline");
362 if((host
= strchr(h
, '@')) || *h
== '*' || strchr(h
, '.') || strchr(h
, ':'))
364 /* Explicit user@host mask given */
366 if(host
) /* Found user@host */
370 /* check for @host */
376 /* check for user@ */
382 user
= splat
; /* no @ found, assume its *@somehost */
388 sendto_one_notice(source_p
, ":Invalid parameters");
392 /* possible remote kline.. */
393 if((parc
> 3) && (irccmp(parv
[2], "ON") == 0))
395 if(!IsOperRemoteBan(source_p
))
397 sendto_one(source_p
, form_str(ERR_NOPRIVS
),
398 me
.name
, source_p
->name
, "remoteban");
402 propagate_generic(source_p
, "UNKLINE", parv
[3], CAP_UNKLN
,
403 "%s %s", user
, host
);
405 if(match(parv
[3], me
.name
) == 0)
408 else if(rb_dlink_list_length(&cluster_conf_list
) > 0)
409 cluster_generic(source_p
, "UNKLINE", SHARED_UNKLINE
, CAP_UNKLN
,
410 "%s %s", user
, host
);
412 aconf
= find_exact_conf_by_address(host
, CONF_KILL
, user
);
415 sendto_one_notice(source_p
, ":No K-Line for %s@%s", user
, host
);
419 if(remove_temp_kline(source_p
, aconf
))
422 remove_permkline_match(source_p
, aconf
);
429 * parv[1] - target server
430 * parv[2] - user to unkline
431 * parv[3] - host to unkline
434 ms_unkline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
436 /* parv[0] parv[1] parv[2] parv[3]
437 * oper target server user host */
438 propagate_generic(source_p
, "UNKLINE", parv
[1], CAP_UNKLN
,
439 "%s %s", parv
[2], parv
[3]);
441 if(!match(parv
[1], me
.name
))
444 if(!IsPerson(source_p
))
447 handle_remote_unkline(source_p
, parv
[2], parv
[3]);
452 me_unkline(struct Client
*client_p
, struct Client
*source_p
, int parc
, const char *parv
[])
455 if(!IsPerson(source_p
))
458 handle_remote_unkline(source_p
, parv
[1], parv
[2]);
463 handle_remote_unkline(struct Client
*source_p
, const char *user
, const char *host
)
465 struct ConfItem
*aconf
;
467 if(!find_shared_conf(source_p
->username
, source_p
->host
,
468 source_p
->servptr
->name
, SHARED_UNKLINE
))
471 aconf
= find_exact_conf_by_address(host
, CONF_KILL
, user
);
474 sendto_one_notice(source_p
, ":No K-Line for %s@%s", user
, host
);
478 if(remove_temp_kline(source_p
, aconf
))
481 remove_permkline_match(source_p
, aconf
);
488 * side effects - kline as given, is added to the hashtable
492 apply_kline(struct Client
*source_p
, struct ConfItem
*aconf
,
493 const char *reason
, const char *oper_reason
, const char *current_date
)
495 add_conf_by_address(aconf
->host
, CONF_KILL
, aconf
->user
, NULL
, aconf
);
496 write_confitem(KLINE_TYPE
, source_p
, aconf
->user
, aconf
->host
,
497 reason
, oper_reason
, current_date
, 0);
504 * side effects - tkline as given is placed
507 apply_tkline(struct Client
*source_p
, struct ConfItem
*aconf
,
508 const char *reason
, const char *oper_reason
, const char *current_date
, int tkline_time
)
510 aconf
->hold
= rb_current_time() + tkline_time
;
511 add_temp_kline(aconf
);
513 /* no oper reason.. */
514 if(EmptyString(oper_reason
))
516 sendto_realops_snomask(SNO_GENERAL
, L_ALL
,
517 "%s added temporary %d min. K-Line for [%s@%s] [%s]",
518 get_oper_name(source_p
), tkline_time
/ 60,
519 aconf
->user
, aconf
->host
, reason
);
520 ilog(L_KLINE
, "K %s %d %s %s %s",
521 get_oper_name(source_p
), tkline_time
/ 60,
522 aconf
->user
, aconf
->host
, reason
);
526 sendto_realops_snomask(SNO_GENERAL
, L_ALL
,
527 "%s added temporary %d min. K-Line for [%s@%s] [%s|%s]",
528 get_oper_name(source_p
), tkline_time
/ 60,
529 aconf
->user
, aconf
->host
, reason
, oper_reason
);
530 ilog(L_KLINE
, "K %s %d %s %s %s|%s",
531 get_oper_name(source_p
), tkline_time
/ 60,
532 aconf
->user
, aconf
->host
, reason
, oper_reason
);
535 sendto_one_notice(source_p
, ":Added temporary %d min. K-Line [%s@%s]",
536 tkline_time
/ 60, aconf
->user
, aconf
->host
);
541 * inputs - client placing kline, user@host, user buffer, host buffer
542 * output - 0 if not ok to kline, 1 to kline i.e. if valid user host
546 find_user_host(struct Client
*source_p
, const char *userhost
, char *luser
, char *lhost
)
550 hostp
= strchr(userhost
, '@');
552 if(hostp
!= NULL
) /* I'm a little user@host */
554 *(hostp
++) = '\0'; /* short and squat */
556 rb_strlcpy(luser
, userhost
, USERLEN
+ 1); /* here is my user */
560 rb_strlcpy(lhost
, hostp
, HOSTLEN
+ 1); /* here is my host */
566 /* no '@', no '.', so its not a user@host or host, therefore
567 * its a nick, which support was removed for.
569 if(strchr(userhost
, '.') == NULL
&& strchr(userhost
, ':') == NULL
)
571 sendto_one_notice(source_p
, ":K-Line must be a user@host or host");
575 luser
[0] = '*'; /* no @ found, assume its *@somehost */
577 rb_strlcpy(lhost
, userhost
, HOSTLEN
+ 1);
585 * inputs - user buffer, host buffer
586 * output - 0 if invalid, 1 if valid
590 valid_user_host(struct Client
*source_p
, const char *luser
, const char *lhost
)
592 /* # is invalid, as are '!' (n!u@h kline) and '@' (u@@h kline) */
593 if(strchr(lhost
, '#') || strchr(luser
, '#') || strchr(luser
, '!') ||
596 sendto_one_notice(source_p
, ":Invalid K-Line");
605 * input - user buffer, host buffer
606 * output - 0 if invalid, 1 if valid
610 valid_wild_card(struct Client
*source_p
, const char *luser
, const char *lhost
)
617 /* user has no wildcards, always accept -- jilles */
618 if (!strchr(luser
, '?') && !strchr(luser
, '*'))
621 /* check there are enough non wildcard chars */
623 while ((tmpch
= *p
++))
625 if(!IsKWildChar(tmpch
))
627 /* found enough chars, return */
628 if(++nonwild
>= ConfigFileEntry
.min_nonwildcard
)
633 /* try host, as user didnt contain enough */
634 /* special case for cidr masks -- jilles */
635 if ((p
= strrchr(lhost
, '/')) != NULL
&& IsDigit(p
[1]))
637 bitlen
= atoi(p
+ 1);
638 /* much like non-cidr for ipv6, rather arbitrary for ipv4 */
639 if (bitlen
> 0 && bitlen
>= (strchr(lhost
, ':') ? 4 * (ConfigFileEntry
.min_nonwildcard
- nonwild
) : 6 - 2 * nonwild
))
645 while ((tmpch
= *p
++))
647 if(!IsKWildChar(tmpch
))
648 if(++nonwild
>= ConfigFileEntry
.min_nonwildcard
)
653 sendto_one_notice(source_p
,
654 ":Please include at least %d non-wildcard "
655 "characters with the user@host",
656 ConfigFileEntry
.min_nonwildcard
);
662 * inputs - pointer to client
663 * - pointer to comment
664 * output - 0 if no valid comment, 1 if valid
665 * side effects - NONE
668 valid_comment(struct Client
*source_p
, char *comment
)
670 if(strchr(comment
, '"'))
672 sendto_one_notice(source_p
, ":Invalid character '\"' in comment");
676 if(strlen(comment
) > BANREASONLEN
)
677 comment
[BANREASONLEN
] = '\0';
682 /* already_placed_kline()
684 * inputs - source to notify, user@host to check, tkline time
685 * outputs - 1 if a perm kline or a tkline when a tkline is being
687 * side effects - notifies source_p kline exists
689 /* Note: This currently works if the new K-line is a special case of an
690 * existing K-line, but not the other way round. To do that we would
691 * have to walk the hash and check every existing K-line. -A1kmm.
694 already_placed_kline(struct Client
*source_p
, const char *luser
, const char *lhost
, int tkline
)
696 const char *reason
, *p
;
697 struct rb_sockaddr_storage iphost
, *piphost
;
698 struct ConfItem
*aconf
;
701 aconf
= find_exact_conf_by_address(lhost
, CONF_KILL
, luser
);
702 if (aconf
== NULL
&& ConfigFileEntry
.non_redundant_klines
)
705 if((t
= parse_netmask(lhost
, (struct sockaddr
*)&iphost
, &bits
)) != HM_HOST
)
719 aconf
= find_conf_by_address(lhost
, NULL
, NULL
, (struct sockaddr
*)piphost
, CONF_KILL
, t
, luser
, NULL
);
722 /* The above was really a lookup of a single IP,
723 * so check if the new kline is wider than the
727 p
= strchr(aconf
->host
, '/');
728 if (bits
> 0 && (p
== NULL
|| bits
< atoi(p
+ 1)))
734 /* setting a tkline, or existing one is perm */
735 if(tkline
|| ((aconf
->flags
& CONF_FLAGS_TEMPORARY
) == 0))
737 reason
= aconf
->passwd
? aconf
->passwd
: "<No Reason>";
739 sendto_one_notice(source_p
,
740 ":[%s@%s] already K-Lined by [%s@%s] - %s",
741 luser
, lhost
, aconf
->user
,
742 aconf
->host
, reason
);
750 /* remove_permkline_match()
752 * hunts for a permanent kline, and removes it.
755 remove_permkline_match(struct Client
*source_p
, struct ConfItem
*aconf
)
759 int error_on_write
= NO
;
761 char matchbuf
[BUFSIZE
];
762 char temppath
[BUFSIZE
];
763 const char *filename
;
764 const char *host
, *user
;
771 rb_snprintf(temppath
, sizeof(temppath
),
772 "%s.tmp", ConfigFileEntry
.klinefile
);
774 filename
= get_conf_name(KLINE_TYPE
);
776 if((in
= fopen(filename
, "r")) == 0)
778 sendto_one_notice(source_p
, ":Cannot open %s", filename
);
783 if((out
= fopen(temppath
, "w")) == 0)
785 sendto_one_notice(source_p
, ":Cannot open %s", temppath
);
793 snprintf(matchbuf
, sizeof(matchbuf
), "\"%s\",\"%s\"", user
, host
);
794 matchlen
= strlen(matchbuf
);
796 while (fgets(buf
, sizeof(buf
), in
))
801 if(!strncasecmp(buf
, matchbuf
, matchlen
))
807 error_on_write
= flush_write(source_p
, out
, buf
, temppath
);
810 /* we dropped out of the loop early because we found a match,
811 * to drop into this somewhat faster loop as we presume we'll never
812 * have two matching klines --anfl
814 if(pairme
&& !error_on_write
)
816 while(fgets(buf
, sizeof(buf
), in
))
821 error_on_write
= flush_write(source_p
, out
, buf
, temppath
);
827 error_on_write
= YES
;
829 /* The result of the rename should be checked too... oh well */
830 /* If there was an error on a write above, then its been reported
831 * and I am not going to trash the original kline /conf file
835 sendto_one_notice(source_p
, ":Couldn't write temp kline file, aborted");
840 sendto_one_notice(source_p
, ":Cannot find K-Line for %s@%s in file",
844 (void) unlink(temppath
);
849 if (rename(temppath
, filename
))
851 sendto_one_notice(source_p
, ":Couldn't rename temp file, aborted");
855 sendto_one_notice(source_p
, ":K-Line for [%s@%s] is removed",
858 sendto_realops_snomask(SNO_GENERAL
, L_ALL
,
859 "%s has removed the K-Line for: [%s@%s]",
860 get_oper_name(source_p
), user
, host
);
862 ilog(L_KLINE
, "UK %s %s %s",
863 get_oper_name(source_p
), user
, host
);
865 remove_reject_mask(aconf
->user
, aconf
->host
);
866 delete_one_address_conf(aconf
->host
, aconf
);
874 * inputs - pointer to client structure of oper requesting unkline
875 * - out is the file descriptor
876 * - buf is the buffer to write
877 * - ntowrite is the expected number of character to be written
878 * - temppath is the temporary file name to be written
879 * output - YES for error on write
881 * side effects - if successful, the buf is written to output file
882 * if a write failure happesn, and the file pointed to
883 * by temppath, if its non NULL, is removed.
885 * The idea here is, to be as robust as possible when writing to the
892 flush_write(struct Client
*source_p
, FILE * out
, const char *buf
, const char *temppath
)
894 int error_on_write
= (fputs(buf
, out
) < 0) ? YES
: NO
;
898 sendto_one_notice(source_p
, ":Unable to write to %s",
901 (void) unlink(temppath
);
903 return (error_on_write
);
906 /* remove_temp_kline()
908 * inputs - username, hostname to unkline
910 * side effects - tries to unkline anything that matches
913 remove_temp_kline(struct Client
*source_p
, struct ConfItem
*aconf
)
918 for (i
= 0; i
< LAST_TEMP_TYPE
; i
++)
920 RB_DLINK_FOREACH(ptr
, temp_klines
[i
].head
)
922 if (aconf
== ptr
->data
)
924 sendto_one_notice(source_p
,
925 ":Un-klined [%s@%s] from temporary k-lines",
926 aconf
->user
, aconf
->host
);
927 sendto_realops_snomask(SNO_GENERAL
, L_ALL
,
928 "%s has removed the temporary K-Line for: [%s@%s]",
929 get_oper_name(source_p
), aconf
->user
, aconf
->host
);
931 ilog(L_KLINE
, "UK %s %s %s",
932 get_oper_name(source_p
),
933 aconf
->user
, aconf
->host
);
934 rb_dlinkDestroy(ptr
, &temp_klines
[i
]);
935 remove_reject_mask(aconf
->user
, aconf
->host
);
936 delete_one_address_conf(aconf
->host
, aconf
);