1283 |
|
return 0; |
1284 |
|
} |
1285 |
|
|
1286 |
– |
/* find_kill() |
1287 |
– |
* |
1288 |
– |
* inputs - pointer to client structure |
1289 |
– |
* output - pointer to struct MaskItem if found |
1290 |
– |
* side effects - See if this user is klined already, |
1291 |
– |
* and if so, return struct MaskItem pointer |
1292 |
– |
*/ |
1293 |
– |
struct MaskItem * |
1294 |
– |
find_kill(struct Client *client_p) |
1295 |
– |
{ |
1296 |
– |
struct MaskItem *conf = NULL; |
1297 |
– |
|
1298 |
– |
assert(client_p != NULL); |
1299 |
– |
|
1300 |
– |
conf = find_conf_by_address(client_p->host, &client_p->localClient->ip, |
1301 |
– |
CONF_KLINE, client_p->localClient->aftype, |
1302 |
– |
client_p->username, NULL, 1); |
1303 |
– |
return conf; |
1304 |
– |
} |
1305 |
– |
|
1306 |
– |
struct MaskItem * |
1307 |
– |
find_gline(struct Client *client_p) |
1308 |
– |
{ |
1309 |
– |
struct MaskItem *conf; |
1310 |
– |
|
1311 |
– |
assert(client_p != NULL); |
1312 |
– |
|
1313 |
– |
conf = find_conf_by_address(client_p->host, &client_p->localClient->ip, |
1314 |
– |
CONF_GLINE, client_p->localClient->aftype, |
1315 |
– |
client_p->username, NULL, 1); |
1316 |
– |
return conf; |
1317 |
– |
} |
1318 |
– |
|
1286 |
|
/* cleanup_tklines() |
1287 |
|
* |
1288 |
|
* inputs - NONE |