| 624 |
|
void |
| 625 |
|
delete_user_host(const char *user, const char *host, int global) |
| 626 |
|
{ |
| 627 |
< |
dlink_node *ptr = NULL, *next_ptr = NULL; |
| 628 |
< |
struct UserHost *found_userhost; |
| 629 |
< |
struct NameHost *nameh; |
| 630 |
< |
int hasident = 1; |
| 627 |
> |
dlink_node *ptr = NULL; |
| 628 |
> |
struct UserHost *found_userhost = NULL; |
| 629 |
> |
unsigned int hasident = 1; |
| 630 |
|
|
| 631 |
|
if (*user == '~') |
| 632 |
|
{ |
| 637 |
|
if ((found_userhost = hash_find_userhost(host)) == NULL) |
| 638 |
|
return; |
| 639 |
|
|
| 640 |
< |
DLINK_FOREACH_SAFE(ptr, next_ptr, found_userhost->list.head) |
| 640 |
> |
DLINK_FOREACH(ptr, found_userhost->list.head) |
| 641 |
|
{ |
| 642 |
< |
nameh = ptr->data; |
| 642 |
> |
struct NameHost *nameh = ptr->data; |
| 643 |
|
|
| 644 |
|
if (!irccmp(user, nameh->name)) |
| 645 |
|
{ |