diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_cloaking.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_customtitle.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_hostchange.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_ldapauth.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_vhost.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 4c2c56318..d83786a20 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -99,7 +99,7 @@ class CloakUser : public ModeHandler } if (cloak) { - user->ChangeDisplayedHost(cloak->c_str()); + user->ChangeDisplayedHost(*cloak); user->SetMode(this, true); return MODEACTION_ALLOW; } diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index b0c9fad21..3386e8cd7 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -56,7 +56,7 @@ class CommandTitle : public Command ServerInstance->PI->SendMetaData(user, "ctitle", title); if (!vhost.empty()) - user->ChangeDisplayedHost(vhost.c_str()); + user->ChangeDisplayedHost(vhost); user->WriteNotice("Custom title set to '" + title + "'"); diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index d0e44b394..6d5896ef5 100644 --- a/src/modules/m_hostchange.cpp +++ b/src/modules/m_hostchange.cpp @@ -151,7 +151,7 @@ class ModuleHostChange : public Module if (!newhost.empty()) { user->WriteNotice("Setting your virtual host: " + newhost); - if (!user->ChangeDisplayedHost(newhost.c_str())) + if (!user->ChangeDisplayedHost(newhost)) user->WriteNotice("Could not set your virtual host: " + newhost); return; } diff --git a/src/modules/m_ldapauth.cpp b/src/modules/m_ldapauth.cpp index 9356b2dd1..6b7c9d219 100644 --- a/src/modules/m_ldapauth.cpp +++ b/src/modules/m_ldapauth.cpp @@ -323,7 +323,7 @@ public: std::string* cc = ldapVhost.get(user); if (cc) { - user->ChangeDisplayedHost(cc->c_str()); + user->ChangeDisplayedHost(*cc); ldapVhost.unset(user); } } diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index 227d9426e..53910fdbe 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -48,7 +48,7 @@ class CommandVhost : public Command if (!mask.empty()) { user->WriteNotice("Setting your VHost: " + mask); - user->ChangeDisplayedHost(mask.c_str()); + user->ChangeDisplayedHost(mask); return CMD_SUCCESS; } } |