X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_randquote.cpp;h=6a490c691715453e7e25a8c3038213667ac71abe;hb=3151d60c1ecc9462e4c335282ee6c31672f45111;hp=fada120adcc8febb4ec3f0d0b66fc930f50668d8;hpb=aa692dc1039b63deef7886e914ec499abe7facaf;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index fada120ad..6a490c691 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -1,7 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2013 Sadie Powell + * Copyright (C) 2013, 2020 Sadie Powell * Copyright (C) 2012, 2019 Robby * Copyright (C) 2010 Daniel De Graaf * Copyright (C) 2009 Uli Schlachter @@ -37,7 +37,7 @@ class ModuleRandQuote : public Module ConfigTag* conf = ServerInstance->Config->ConfValue("randquote"); prefix = conf->getString("prefix"); suffix = conf->getString("suffix"); - FileReader reader(conf->getString("file", "quotes")); + FileReader reader(conf->getString("file", "quotes", 1)); quotes = reader.GetVector(); } @@ -52,7 +52,7 @@ class ModuleRandQuote : public Module Version GetVersion() CXX11_OVERRIDE { - return Version("Provides random quotes on connect", VF_VENDOR); + return Version("Allows random quotes to be sent to users when they connect to the server.", VF_VENDOR); } };