From bf559d788fdbb12906a2126f5b850b46dab9d702 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 24 Jan 2011 01:11:10 -0500 Subject: [PATCH] Fixed loading forbidden nicks --- modules/core/db_plain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/db_plain.cpp b/modules/core/db_plain.cpp index a7dc85527..e589d85f6 100644 --- a/modules/core/db_plain.cpp +++ b/modules/core/db_plain.cpp @@ -269,7 +269,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; }