diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-09 12:32:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-09 12:32:34 +0000 |
commit | 52acbb466b84a1cd161b1c111f855d6f0419fff3 (patch) | |
tree | 75c047fe70b522a23699f9b2d74c868822850f3f /src/modules/m_randquote.cpp | |
parent | 0161215f42ccbfe45d1aef626f830d39486ef699 (diff) |
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
Diffstat (limited to 'src/modules/m_randquote.cpp')
-rw-r--r-- | src/modules/m_randquote.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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); |