From f37f02692d56c8bc69900357aa0006f203eb03d8 Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Thu, 6 May 2004 20:10:34 +0000 Subject: [PATCH] BUILD : 1.7.2 (87) BUGS : 28 NOTES : Fixed bug with RDB and empty nickserv greet message. git-svn-id: svn://svn.anope.org/anope/trunk@87 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@63 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + mysql.c | 6 +++++- version.log | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 5995fb822..e303e2c45 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Anope Version 1.7.x (will be renamed when next release is produced) ------------------- Provided by Anope Dev. +2004/06/05 Fixed bug with RDB and empty nickserv greet message (# 28). 2004/05/04 Fixed Badwords kicker to ignore control characters and color codes. 2004/05/04 anoperc bugfixes including checking if anope binary exists. 2004/05/03 always set the right module name when executing mod_tail commands diff --git a/mysql.c b/mysql.c index 9ddac4455..8366d5c74 100644 --- a/mysql.c +++ b/mysql.c @@ -1474,7 +1474,11 @@ void db_mysql_load_ns_dbase(void) nc->memos.memomax = atoi(mysql_row[9]); nc->channelcount = atoi(mysql_row[10]); nc->channelmax = atoi(mysql_row[11]); - nc->greet = sstrdup(mysql_row[12]); + + if (mysql_row[12][0] == '\0') /* check if it's empty */ + nc->greet = NULL; + else + nc->greet = sstrdup(mysql_row[12]); if (!NSAllowKillImmed) nc->flags &= ~NI_KILL_IMMED; diff --git a/version.log b/version.log index b1eb0a110..6f79743d2 100644 --- a/version.log +++ b/version.log @@ -8,11 +8,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="2" -VERSION_BUILD="86" +VERSION_BUILD="87" VERSION_EXTRA="" # $Log$ # +# BUILD : 1.7.2 (87) +# BUGS : 28 +# NOTES : Fixed bug with RDB and empty nickserv greet message. +# # BUILD : 1.7.2 (86) # BUGS : # NOTES : Changed the allocation of buffer for normalizeBuffer yet again