diff options
| author | Adam <Adam@anope.org> | 2015-09-11 14:54:48 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2015-09-11 14:54:48 -0400 |
| commit | 94f781726ec14db780fdd376195ed81aa1f70464 (patch) | |
| tree | fe0e9c91cebf2eb3c0b67c0843c599cc5f8255b0 | |
| parent | 054c227df0eea2ccfaa866b11c0cf2ce5ec5ec6e (diff) | |
Don't assign bots when persist is set if we aren't synced sinec we might not know of all modes
| -rw-r--r-- | modules/commands/cs_set.cpp | 3 |
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) { |
