From 141b87bd141af8603a02cdc7ab5f63842340045d Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 26 Feb 2012 23:28:02 -0500 Subject: Changed the OnChanDrop event to be called right before channels are dropped, not after --- include/modules.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 29e6c0881..4869ba3db 100644 --- a/include/modules.h +++ b/include/modules.h @@ -586,10 +586,10 @@ class CoreExport Module : public Extensible */ virtual void OnLevelChange(User *u, ChannelInfo *ci, const Anope::string &priv, int16_t what) { } - /** Called when a channel is dropped - * @param chname The channel name + /** Called right before a channel is dropped + * @param ci The channel */ - virtual void OnChanDrop(const Anope::string &chname) { } + virtual void OnChanDrop(ChannelInfo *ci) { } /** Called when a channel is registered * @param ci The channel -- cgit