summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-06-21 13:27:41 -0400
committerAdam <Adam@anope.org>2010-06-21 16:16:11 -0400
commitfb16ce72a0b5a3ce336e003327c8d1740f4fdb98 (patch)
tree8b650103123016e10fb50c447d6c7a3e3f16efc5 /src
parent36bf5fcb266b2dbc5262940e29a97f1ad985ffb1 (diff)
Fixed some more problems with db-convert
Diffstat (limited to 'src')
-rw-r--r--src/core/db_plain.cpp2
-rw-r--r--src/tools/db-convert.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/core/db_plain.cpp b/src/core/db_plain.cpp
index 82a2c0bd4..d88bbbdaa 100644
--- a/src/core/db_plain.cpp
+++ b/src/core/db_plain.cpp
@@ -73,6 +73,8 @@ static void ReadDatabase(Module *m = NULL)
buf.erase(buf.begin());
if (!buf.empty() && !sep.StreamEnd())
params.push_back(buf + " " + sep.GetRemaining());
+ else if (!sep.StreamEnd())
+ params.push_back(sep.GetRemaining());
else if (!buf.empty())
params.push_back(buf);
break;
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;
}
}