diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2013-06-22 13:41:05 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2013-06-22 13:41:05 +0200 |
commit | 5e36d848d50e62d724750e6d114167f8f6c965d0 (patch) | |
tree | f05a37951b648fe3d3a7da6e8d2c8f789082cf51 /src | |
parent | fee461f3d01b3d176be3a0732e21cb6537df1419 (diff) |
pseudoclients now trigger OnJoinChannel and OnPartChannel
Diffstat (limited to 'src')
-rw-r--r-- | src/bots.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 243d2ab89..2ff4f5340 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -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); } |