summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-02-26 23:28:02 -0500
committerAdam <Adam@anope.org>2012-02-26 23:28:02 -0500
commit141b87bd141af8603a02cdc7ab5f63842340045d (patch)
tree120236326acc921006984b3843110e3fe5f4939b /include
parenta5b9e235ae240439608aa743c9ebb3bf6e7d342a (diff)
Changed the OnChanDrop event to be called right before channels are dropped, not after
Diffstat (limited to 'include')
-rw-r--r--include/modules.h6
1 files changed, 3 insertions, 3 deletions
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