summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-09-11 14:54:48 -0400
committerAdam <Adam@anope.org>2015-09-11 14:54:48 -0400
commit94f781726ec14db780fdd376195ed81aa1f70464 (patch)
treefe0e9c91cebf2eb3c0b67c0843c599cc5f8255b0 /modules/commands/cs_set.cpp
parent054c227df0eea2ccfaa866b11c0cf2ce5ec5ec6e (diff)
Don't assign bots when persist is set if we aren't synced sinec we might not know of all modes
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r--modules/commands/cs_set.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index 106adf507..84541a2a9 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -1170,7 +1170,8 @@ class CSSet : public Module
{
c->SetMode(NULL, cm);
}
- else
+ /* on startup we might not know mode availibity here */
+ else if (Me && Me->IsSynced())
{
if (!ci->bi)
{