1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 04:56:38 +02:00

Fixed some more problems with db-convert

This commit is contained in:
Adam
2010-06-21 13:27:41 -04:00
parent 36bf5fcb26
commit fb16ce72a0
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -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;
+3 -3
View File
@@ -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;
}
}