From 76d9e58ae59ca99452ebaeedef661d0f82fc7104 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 25 Jan 2013 03:09:51 -0500 Subject: mysql_insert_id doesn't return an id if one isnt generated, so check that it really returns a value before using it. Also fix memos to cleanup after themselves when deleted. --- modules/commands/ms_cancel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/ms_cancel.cpp') diff --git a/modules/commands/ms_cancel.cpp b/modules/commands/ms_cancel.cpp index 908c4ef96..e03883d91 100644 --- a/modules/commands/ms_cancel.cpp +++ b/modules/commands/ms_cancel.cpp @@ -34,7 +34,7 @@ class CommandMSCancel : public Command const Anope::string &nname = params[0]; bool ischan; - MemoInfo *mi = MemoServService->GetMemoInfo(nname, ischan); + MemoInfo *mi = MemoInfo::GetMemoInfo(nname, ischan); if (mi == NULL) source.Reply(ischan ? CHAN_X_NOT_REGISTERED : _(NICK_X_NOT_REGISTERED), nname.c_str()); -- cgit