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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user