~liberachat/atheme-extra

18b73c2b8a3c4dce5bed86bc12cd2d2edf8b2992 — Jess Porter 3 months ago 9021157 production
log correct casing of project name when dropping (#2)

* log correct casing of project name when dropping

* I want to break free()
1 files changed, 4 insertions(+), 0 deletions(-)

M projectns/manage.c
M projectns/manage.c => projectns/manage.c +4 -0
@@ 71,10 71,14 @@ static void cmd_drop(sourceinfo_t *si, int parc, char *parv[])
		return;
	}

	// get the correct name casing before destroying the project
	name = sstrdup(p->name);

	projectsvs->project_destroy(p);

	logcommand(si, CMDLOG_ADMIN, "PROJECT:DROP: \2%s\2", name);
	command_success_nodata(si, _("The registration for the project \2%s\2 has been dropped."), name);
	free(name);
}

static void mod_init(module_t *const restrict m)