From d7206c8f386a53ccda671f67a1b4e92c7f22c293 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 24 Jan 2011 01:08:28 -0500 Subject: Fixed db upgrade loading forbidden nicks --- modules/core/db_plain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/core') diff --git a/modules/core/db_plain.cpp b/modules/core/db_plain.cpp index 041ea752e..78b71a53d 100644 --- a/modules/core/db_plain.cpp +++ b/modules/core/db_plain.cpp @@ -337,7 +337,7 @@ static void LoadNickCore(const std::vector ¶ms) /* Clear default flags */ nc->ClearFlags(); - nc->pass = params[1]; + nc->pass = params.size() > 1 ? params[1] : ""; Log(LOG_DEBUG_2) << "[db_plain]: Loaded NickCore " << nc->display; } -- cgit