From a26f119bc8666642a54564763626e52e5c72b030 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 27 Oct 2010 22:29:34 -0400 Subject: Do not store memo number in memo structs, fixes some bugs with deleting memos --- include/modules.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index e47b5612b..7a0d02269 100644 --- a/include/modules.h +++ b/include/modules.h @@ -939,16 +939,18 @@ class CoreExport Module : public virtual Base /** Called when a memo is deleted * @param nc The nickcore of the memo being deleted * @param mi The memo info + * @param m The memo * @param number What memo number is being deleted, can be 0 for all memos */ - virtual void OnMemoDel(const NickCore *nc, MemoInfo *mi, int number) { } + virtual void OnMemoDel(const NickCore *nc, MemoInfo *mi, Memo *m) { } /** Called when a memo is deleted * @param ci The channel of the memo being deleted * @param mi The memo info + * @param m The memo * @param number What memo number is being deleted, can be 0 for all memos */ - virtual void OnMemoDel(ChannelInfo *ci, MemoInfo *mi, int number) { } + virtual void OnMemoDel(ChannelInfo *ci, MemoInfo *mi, Memo *m) { } /** Called when a mode is set on a channel * @param c The channel -- cgit