summaryrefslogtreecommitdiff
path: root/src/messages.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-11-16 09:38:13 -0500
committerAdam <Adam@anope.org>2013-11-16 09:38:13 -0500
commit51a9f64adb2e5fb3c3d9ab1adabd44644727c5b1 (patch)
tree5da437bbe95e9a50a179de9ffaeb173b4243b81a /src/messages.cpp
parent332fd239278fe1a80c500a1ea01763e84783057c (diff)
Use the source's sync state and not mine when processing sjoins to determine whether or not to sync the channel on creation, instead sync it when the server syncs.
Diffstat (limited to 'src/messages.cpp')
-rw-r--r--src/messages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messages.cpp b/src/messages.cpp
index 0e7d03ce1..8dc962cfd 100644
--- a/src/messages.cpp
+++ b/src/messages.cpp
@@ -145,10 +145,10 @@ void Join::SJoin(MessageSource &source, const Anope::string &chan, time_t ts, co
/* Channel is done syncing */
if (c->syncing)
{
- c->syncing = false;
/* Sync the channel (mode lock, topic, etc) */
/* the channel is synced when the netmerge is complete */
- if (Me && Me->IsSynced())
+ Server *src = source.GetServer() ? source.GetServer() : Me;
+ if (src && src->IsSynced())
c->Sync();
}
}