diff options
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index c6a726855..bc8b75594 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -219,12 +219,9 @@ void BotInfo::Part(Channel *c, const Anope::string &reason) IRCD->SendPart(this, c, "%s", !reason.empty() ? reason.c_str() : ""); - Anope::string cname = c->name; - Reference<Channel> cref = c; - c->DeleteUser(this); - FOREACH_MOD(OnPartChannel, (this, cref, cname, reason)); + FOREACH_MOD(OnPartChannel, (this, c, c->name, reason)); } void BotInfo::OnMessage(User *u, const Anope::string &message) |