X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_hostchange.cpp;h=6d5896ef51bd73ada8bedd4d875224030cc6a613;hb=1e68ff30df59dc1e063a678134705d177b2e4562;hp=d0e44b3940e59e1f9c03945a49da9a0fcc3f1820;hpb=e244cb2c63b1ac1d85bdbb4691f7b1bd940ae804;p=user%2Fhenk%2Fcode%2Finspircd.git 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; }