Anope Development > Modules
OnPartChannel never binded
(1/1)
CrazyCat:
Hi there,
I'm working on a log module, lot of things work but I'm unable to get the part.
Looking at the sources of modules.h:
--- Code: ---/** Called when a user parts a channel
* @param u The user
* @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 Anope::string &channel, const Anope::string &msg) { throw NotImplementedException(); }
--- End code ---
So I made in my module (incomplete code, I just show the debug part):
--- Code: ---void OnPartChannel(User *u, Channel *c, Anope::string &channel, Anope::string &msg) anope_override
{
Log(this) << "Got an action " << " part ";
}
void OnLeaveChannel(User *u, Channel *c) anope_override
{
Log(this) << "Got an action " << " leave ";
}
void OnPrePartChannel(User *u, Channel *c) anope_override
{
Log(this) << "Got an action " << " prepart ";
}
--- End code ---
When I part & join a channel, this is what I've in my logfile:
--- Quote ---[Jun 17 15:27:06 2024] M_LOGCHAN: Got an action prepart
[Jun 17 15:27:06 2024] M_LOGCHAN: Got an action leave
[Jun 17 15:27:18 2024] M_LOGCHAN: Got an action join
--- End quote ---
So, the part is never called, and it's the only one which has the part message.
Did I do something wrong or is it something else ?
Sadie:
What version of Anope are you using?
CrazyCat:
I'm with anope-2.0.15 working on Debian 12
Navigation
[0] Message Index
Go to full version