stay deleted
This commit is contained in:
parent
c38a0c3d8c
commit
c5a2793609
1 changed files with 3 additions and 9 deletions
12
dl.c
12
dl.c
|
@ -1035,18 +1035,12 @@ ModUser *
|
|||
findbot (char *bot_name)
|
||||
{
|
||||
hnode_t *bn;
|
||||
User* u;
|
||||
|
||||
SET_SEGV_LOCATION();
|
||||
|
||||
u = finduser(bot_name);
|
||||
if(u) {
|
||||
bn = hash_lookup (bh, u->nick);
|
||||
if (bn) {
|
||||
return (ModUser *) hnode_get (bn);
|
||||
}
|
||||
} else {
|
||||
nlog (LOG_WARNING, LOG_CORE, "findbot: unable to find user %s", bot_name);
|
||||
bn = hash_lookup (bh, bot_name);
|
||||
if (bn) {
|
||||
return (ModUser *) hnode_get (bn);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
Reference in a new issue