summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-27 22:29:34 -0400
committerAdam <Adam@anope.org>2010-10-27 22:29:34 -0400
commita26f119bc8666642a54564763626e52e5c72b030 (patch)
treedbc5a6e06105c4111338d61a8739c4ea9c951e1b /include/modules.h
parenta79da4bba11ef6fec0ef010a7900c742c2e358ad (diff)
Do not store memo number in memo structs, fixes some bugs with deleting memos
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h6
1 files changed, 4 insertions, 2 deletions
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