mirror of
https://github.com/matrix-construct/construct
synced 2024-12-30 17:34:04 +01:00
monitor: additional cleanups, and add a missing free_monitor() in m_monitor
This commit is contained in:
parent
d5f856c68e
commit
7485e86073
2 changed files with 2 additions and 1 deletions
|
@ -182,6 +182,8 @@ del_monitor(struct Client *client_p, const char *nicks)
|
||||||
|
|
||||||
rb_dlinkFindDestroy(client_p, &monptr->users);
|
rb_dlinkFindDestroy(client_p, &monptr->users);
|
||||||
rb_dlinkFindDestroy(monptr, &client_p->localClient->monitor_list);
|
rb_dlinkFindDestroy(monptr, &client_p->localClient->monitor_list);
|
||||||
|
|
||||||
|
free_monitor(monptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,6 @@ find_monitor(const char *name, int add)
|
||||||
monptr = ptr->data;
|
monptr = ptr->data;
|
||||||
if(!irccmp(monptr->name, name))
|
if(!irccmp(monptr->name, name))
|
||||||
return monptr;
|
return monptr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(add)
|
if(add)
|
||||||
|
|
Loading…
Reference in a new issue