mirror of
https://github.com/anope/anope.git
synced 2026-07-02 03:06:38 +02:00
Fix topiclock on inspircd
This commit is contained in:
@@ -197,7 +197,7 @@ class RatboxProto : public IRCDProto
|
||||
return true;
|
||||
}
|
||||
|
||||
void SendTopic(BotInfo *bi, Channel *c) anope_override
|
||||
void SendTopic(BotInfo *bi, Channel *c, const Anope::string &topic, const Anope::string &setter, time_t &ts) anope_override
|
||||
{
|
||||
bool needjoin = c->FindUser(bi) == NULL;
|
||||
if (needjoin)
|
||||
@@ -206,7 +206,7 @@ class RatboxProto : public IRCDProto
|
||||
status.SetFlag(CMODE_OP);
|
||||
bi->Join(c, &status);
|
||||
}
|
||||
IRCDProto::SendTopic(bi, c);
|
||||
IRCDProto::SendTopic(bi, c, topic, setter, ts);
|
||||
if (needjoin)
|
||||
bi->Part(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user