mirror of
https://github.com/anope/anope.git
synced 2026-07-07 12:03:12 +02:00
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.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user