diff options
| author | Adam <Adam@anope.org> | 2010-06-21 13:27:41 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-06-21 16:16:11 -0400 |
| commit | fb16ce72a0b5a3ce336e003327c8d1740f4fdb98 (patch) | |
| tree | 8b650103123016e10fb50c447d6c7a3e3f16efc5 /src/tools | |
| parent | 36bf5fcb266b2dbc5262940e29a97f1ad985ffb1 (diff) | |
Fixed some more problems with db-convert
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/db-convert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/db-convert.c b/src/tools/db-convert.c index 0b1a49c1e..8b5c67a2f 100644 --- a/src/tools/db-convert.c +++ b/src/tools/db-convert.c @@ -839,7 +839,7 @@ int main(int argc, char *argv[]) << ((ci->flags & CI_SIGNKICK_LEVEL) ? " SIGNKICKLEVEL" : "") << ((ci->flags & CI_XOP ) ? " XOP" : "") << ((ci->flags & CI_SUSPENDED ) ? " SUSPENDED" : "") << std::endl; - if (ci->desc) + if (ci->desc && *ci->desc) fs << "MD DESC :" << ci->desc << std::endl; if (ci->url) fs << "MD URL :" << ci->url << std::endl; @@ -962,8 +962,8 @@ int main(int argc, char *argv[]) fs << "MD BI BADWORD " << (( ci->badwords[j].type == 0 ) ? "ANY " : "" ) << (( ci->badwords[j].type == 1 ) ? "SINGLE " : "" ) - << (( ci->badwords[j].type == 3 ) ? "START " : "" ) - << (( ci->badwords[j].type == 4 ) ? "END " : "" ) + << (( ci->badwords[j].type == 2 ) ? "START " : "" ) + << (( ci->badwords[j].type == 3 ) ? "END " : "" ) << ":" << ci->badwords[j].word << std::endl; } } |
