mirror of
https://github.com/anope/anope.git
synced 2026-06-28 18:36:39 +02:00
Fix restoring topics on uplink sync
This commit is contained in:
@@ -195,7 +195,7 @@ class CSTopic : public Module
|
||||
|
||||
void OnChannelSync(Channel *c) anope_override
|
||||
{
|
||||
if (Me && Me->IsSynced() && c->ci)
|
||||
if (c->ci)
|
||||
{
|
||||
/* Update channel topic */
|
||||
if ((topiclock.HasExt(c->ci) || keeptopic.HasExt(c->ci)) && c->ci->last_topic != c->topic)
|
||||
@@ -227,7 +227,7 @@ class CSTopic : public Module
|
||||
}
|
||||
}
|
||||
|
||||
void OnChanInfo(CommandSource &source, ChannelInfo *ci, InfoFormatter &info, bool show_all)
|
||||
void OnChanInfo(CommandSource &source, ChannelInfo *ci, InfoFormatter &info, bool show_all) anope_override
|
||||
{
|
||||
if (keeptopic.HasExt(ci))
|
||||
info.AddOption(_("Topic Retention"));
|
||||
|
||||
Reference in New Issue
Block a user