diff options
author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-06 20:10:34 +0000 |
---|---|---|
committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-06 20:10:34 +0000 |
commit | f37f02692d56c8bc69900357aa0006f203eb03d8 (patch) | |
tree | 1f73a8c3c66cbbb7339dbfebdffcf614bdec1b98 /mysql.c | |
parent | ff8b395693fa418b07a31cc3205a372148a698ee (diff) |
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
Diffstat (limited to 'mysql.c')
-rw-r--r-- | mysql.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |