From 6e3aa36876fe85caac9919420ece61d981f046a4 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 25 Oct 2009 04:12:54 +0000 Subject: Fixed passing invalid channel pointer to OnPartChannel if the last user in a channel parted, now we use NULL and just give it the channel name git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2586 5417fbe8-f217-4b02-8779-1006273d7864 --- include/modules.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 7a122804d..f7354f4e2 100644 --- a/include/modules.h +++ b/include/modules.h @@ -640,9 +640,11 @@ class CoreExport Module /** Called when a user parts a channel * @param u The user - * @param c The channel + * @param c The channel, may be NULL if the channel no longer exists + * @param channel The channel name + * @param msg The part reason */ - virtual void OnPartChannel(User *u, Channel *c, const std::string &msg) { } + virtual void OnPartChannel(User *u, Channel *c, const std::string &channel, const std::string &msg) { } /** Called before a user joins a channel * @param u The user -- cgit