diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_cloaking.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_foobar.cpp | 12 | ||||
-rw-r--r-- | src/modules/m_randquote.cpp | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 46ed5cfec..d355ec657 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -32,13 +32,13 @@ class ModuleCloaking : public Module { if (strstr(user->dhost,".")) { - string a = strstr(user->dhost,"."); + std::string a = strstr(user->dhost,"."); char ra[64]; long seed,s2; memcpy(&seed,user->dhost,sizeof(long)); memcpy(&s2,a.c_str(),sizeof(long)); sprintf(ra,"%.8X",seed*s2*strlen(user->host)); - string b = Srv->GetNetworkName() + "-" + ra + a; + std::string b = Srv->GetNetworkName() + "-" + ra + a; Srv->Log(DEBUG,"cloak: allocated "+b); strcpy(user->dhost,b.c_str()); } diff --git a/src/modules/m_foobar.cpp b/src/modules/m_foobar.cpp index 0c8907bea..ab3fa759b 100644 --- a/src/modules/m_foobar.cpp +++ b/src/modules/m_foobar.cpp @@ -44,7 +44,7 @@ class ModuleFoobar : public Module { // method called when a user connects - string b = user->nick; + std::string b = user->nick; Srv->Log(DEBUG,"Foobar: User connecting: " + b); } @@ -52,7 +52,7 @@ class ModuleFoobar : public Module { // method called when a user disconnects - string b = user->nick; + std::string b = user->nick; Srv->Log(DEBUG,"Foobar: User quitting: " + b); } @@ -60,8 +60,8 @@ class ModuleFoobar : public Module { // method called when a user joins a channel - string c = channel->name; - string b = user->nick; + std::string c = channel->name; + std::string b = user->nick; Srv->Log(DEBUG,"Foobar: User " + b + " joined " + c); } @@ -69,8 +69,8 @@ class ModuleFoobar : public Module { // method called when a user parts a channel - string c = channel->name; - string b = user->nick; + std::string c = channel->name; + std::string b = user->nick; Srv->Log(DEBUG,"Foobar: User " + b + " parted " + c); } diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index aebf7c0ad..5be40bc6c 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -17,9 +17,9 @@ class ModuleRandQuote : public Module ConfigReader *conf; FileReader *quotes; - string q_file; - string prefix; - string suffix; + std::string q_file; + std::string prefix; + std::string suffix; public: ModuleRandQuote() @@ -48,7 +48,7 @@ class ModuleRandQuote : public Module virtual void OnUserConnect(userrec* user) { - string str; + std::string str; int fsize; char buf[MAXBUF]; |