1
0
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:
Adam
2013-07-19 21:25:39 -04:00
parent c8511a625d
commit 492eac20a8
+2 -2
View File
@@ -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"));