136 |
static int |
static int |
137 |
already_placed_kline(struct Client *source_p, const char *luser, const char *lhost, int warn) |
already_placed_kline(struct Client *source_p, const char *luser, const char *lhost, int warn) |
138 |
{ |
{ |
|
const char *reason; |
|
139 |
struct irc_ssaddr iphost, *piphost; |
struct irc_ssaddr iphost, *piphost; |
140 |
struct MaskItem *conf = NULL; |
struct MaskItem *conf = NULL; |
141 |
int t = 0; |
int t = 0; |
155 |
if ((conf = find_conf_by_address(lhost, piphost, CONF_KLINE, aftype, luser, NULL, 0))) |
if ((conf = find_conf_by_address(lhost, piphost, CONF_KLINE, aftype, luser, NULL, 0))) |
156 |
{ |
{ |
157 |
if (IsClient(source_p) && warn) |
if (IsClient(source_p) && warn) |
|
{ |
|
|
reason = conf->reason ? conf->reason : CONF_NOREASON; |
|
158 |
sendto_one_notice(source_p, &me, ":[%s@%s] already K-Lined by [%s@%s] - %s", |
sendto_one_notice(source_p, &me, ":[%s@%s] already K-Lined by [%s@%s] - %s", |
159 |
luser, lhost, conf->user, conf->host, reason); |
luser, lhost, conf->user, conf->host, conf->reason); |
|
} |
|
|
|
|
160 |
return 1; |
return 1; |
161 |
} |
} |
162 |
|
|