X-Git-Url: http://git.pk910.de/?p=iauth.git;a=blobdiff_plain;f=iauth_cmd.c;h=67f1d98c2511edbfc0ab5c3ee2d607bb015a4a39;hp=5480c380df187f9fca3c0e14d785e0f80d56feef;hb=HEAD;hpb=d0d66ffbb1b8ad300e75c191533bc4627cd77707 diff --git a/iauth_cmd.c b/iauth_cmd.c index 5480c38..67f1d98 100644 --- a/iauth_cmd.c +++ b/iauth_cmd.c @@ -101,12 +101,17 @@ void iauth_cmd_L(struct iauth_client *client, char *arg) { iauth_stats_loc_deny(); } else { + if(strcmp(res->cclass, "error") == 0) { + iauth_query_reject(client->id, res->str); + iauth_stats_loc_deny(); + } else { if(*res->ident) iauth_query_set_username(client->id, res->ident); if(*res->host) iauth_query_sethost(client->id, res->host); if(*res->ip) iauth_query_setip(client->id, res->ip); if(*res->modes) iauth_query_setmodes(client->id, res->modes); iauth_query_assign(client->id, (*res->cclass)?res->cclass:NULL); iauth_stats_loc_allow(); + } } iauth_delid(client->id); @@ -134,12 +139,17 @@ void iauth_cmd_H(struct iauth_client *client, char *arg) { iauth_stats_def_deny(); } else { + if(strcmp(res->cclass, "error") == 0) { + iauth_query_reject(client->id, res->str); + iauth_stats_loc_deny(); + } else { if(*res->ident) iauth_query_set_username(client->id, res->ident); if(*res->host) iauth_query_sethost(client->id, res->host); if(*res->ip) iauth_query_setip(client->id, res->ip); if(*res->modes) iauth_query_setmodes(client->id, res->modes); iauth_query_assign(client->id, (*res->cclass)?res->cclass:NULL); iauth_stats_def_allow(); + } } iauth_delid(client->id);