diff options
author | dukepyrolator <dukepyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-09 14:27:54 +0000 |
---|---|---|
committer | dukepyrolator <dukepyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-09 14:27:54 +0000 |
commit | 4e594d3acd19177a82321e8ea8e1e6396f86e07c (patch) | |
tree | f1c8192c9309bf6f700db761474780fcb37cb1e9 /src | |
parent | 89120afeba0a1654fedf6409949692e4ccf0ddb4 (diff) |
fixed the database converter (streams dont like null pointers)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2874 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/db-convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/db-convert.c b/src/tools/db-convert.c index 8f3c326a2..9133799a4 100644 --- a/src/tools/db-convert.c +++ b/src/tools/db-convert.c @@ -809,7 +809,7 @@ int main(int argc, char *argv[]) if (ci->last_topic) // MD CH topic <setter> <time> :topic fs << "MD TOPIC " << ci->last_topic_setter << " " << ci->last_topic_time << " :" << ci->last_topic << std::endl; if (ci->flags & CI_FORBIDDEN) - fs << "MD FORBID " << ci->forbidby << " :" << ci->forbidreason << std::endl; + fs << "MD FORBID " << ci->forbidby << " :" << (ci->forbidreason ? ci->forbidreason : "no reason given") << std::endl; for (j = 0; j < ci->accesscount; j++) { // MD ACCESS <display> <level> <last_seen> <creator> - creator isn't in 1.9.0-1, but is in 1.9.2 |