0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 08:24:08 +01:00

monitor: additional cleanups, and add a missing free_monitor() in m_monitor

This commit is contained in:
William Pitcock 2015-10-11 19:11:01 -05:00
parent d5f856c68e
commit 7485e86073
2 changed files with 2 additions and 1 deletions

View file

@ -182,6 +182,8 @@ del_monitor(struct Client *client_p, const char *nicks)
rb_dlinkFindDestroy(client_p, &monptr->users);
rb_dlinkFindDestroy(monptr, &client_p->localClient->monitor_list);
free_monitor(monptr);
}
}

View file

@ -66,7 +66,6 @@ find_monitor(const char *name, int add)
monptr = ptr->data;
if(!irccmp(monptr->name, name))
return monptr;
}
if(add)