1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 05:53:13 +02:00

pseudoclients now trigger OnJoinChannel and OnPartChannel

This commit is contained in:
DukePyrolator
2013-06-22 13:41:05 +02:00
parent fee461f3d0
commit 5e36d848d5
+5
View File
@@ -179,6 +179,8 @@ void BotInfo::Join(Channel *c, ChannelStatus *status)
c->JoinUser(this, status);
if (IRCD)
IRCD->SendJoin(this, c, status);
FOREACH_MOD(OnJoinChannel, (this, c));
}
void BotInfo::Join(const Anope::string &chname, ChannelStatus *status)
@@ -193,6 +195,9 @@ void BotInfo::Part(Channel *c, const Anope::string &reason)
return;
IRCD->SendPart(this, c, "%s", !reason.empty() ? reason.c_str() : "");
FOREACH_MOD(OnPartChannel, (this, c, c->name, reason));
c->DeleteUser(this);
}