diff options
author | Adam <Adam@anope.org> | 2010-06-19 13:39:12 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-19 13:39:12 -0400 |
commit | 68b54f3fb540ab16294fbc5ed49705a44743f829 (patch) | |
tree | 8b75ebfa67cc7da81a5dd3577023929ae385b590 /src | |
parent | 7530c030a91d57d8696e86881ec4ad0911146b6a (diff) |
Made db-converter only write mlock params if there really is one, fixes some problems with converting mlock for certain databases
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/db-convert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/db-convert.c b/src/tools/db-convert.c index 4e3d01034..2866079b3 100644 --- a/src/tools/db-convert.c +++ b/src/tools/db-convert.c @@ -854,16 +854,16 @@ int main(int argc, char *argv[]) process_mlock_modes(fs, ci->mlock_off, ircd); fs << std::endl; } - if (ci->mlock_limit || ci->mlock_key || ci->mlock_flood || ci->mlock_redirect) + if (ci->mlock_limit || (ci->mlock_key && *ci->mlock_key) || (ci->mlock_flood && *ci->mlock_flood) || (ci->mlock_redirect && *ci->mlock_redirect)) { fs << "MD MLP"; if (ci->mlock_limit) fs << " CMODE_LIMIT " << ci->mlock_limit; - if (ci->mlock_key) + if (ci->mlock_key && *ci->mlock_key) fs << " CMODE_KEY " << ci->mlock_key; - if (ci->mlock_flood) + if (ci->mlock_flood && *ci->mlock_flood) fs << " CMODE_FLOOD " << ci->mlock_flood; - if (ci->mlock_redirect) + if (ci->mlock_redirect && *ci->mlock_redirect) fs << " CMODE_REDIRECT " << ci->mlock_redirect; fs << std::endl; } |