X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_hostchange.cpp;h=6d5896ef51bd73ada8bedd4d875224030cc6a613;hb=4bb972550e79292c5571714103780d873f5e82aa;hp=d0e44b3940e59e1f9c03945a49da9a0fcc3f1820;hpb=c202dea024542b9c6c6b771bb9a3a081d9eacdc5;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; }