From 52acbb466b84a1cd161b1c111f855d6f0419fff3 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Jun 2007 12:32:34 +0000 Subject: A ton more clear() and empty() stuff thats been lingering on the long term todo for too long a term :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7264 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_randquote.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_randquote.cpp') diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index a720be522..ce1fcfb07 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -18,9 +18,9 @@ static FileReader *quotes = NULL; -std::string q_file = ""; -std::string prefix = ""; -std::string suffix = ""; +std::string q_file; +std::string prefix; +std::string suffix; /* $ModDesc: Provides random Quotes on Connect. */ @@ -39,7 +39,7 @@ class cmd_randquote : public command_t std::string str; int fsize; - if (q_file == "" || quotes->Exists()) + if (q_file.empty() || quotes->Exists()) { fsize = quotes->FileSize(); str = quotes->GetLine(rand() % fsize); @@ -92,7 +92,7 @@ class ModuleRandQuote : public Module mycommand = NULL; - if (q_file == "") + if (q_file.empty()) { RandquoteException e("m_randquote: Quotefile not specified - Please check your config."); throw(e); -- cgit v1.3.1-10-gc9f91