]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_randquote.cpp
Convert more modules
[user/henk/code/inspircd.git] / src / modules / m_randquote.cpp
index 701e5da91857423ef5ddf3204b84a0778825ea83..ce1fcfb079c56e189d2bde73d46fec7a3e04026c 100644 (file)
  * ---------------------------------------------------
  */
 
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
 
-#include "inspircd.h"
-
-
 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. */
 
@@ -41,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);
@@ -94,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);