]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_clearcache.cpp
Fix user->host not being assigned correctly for new connections
[user/henk/code/inspircd.git] / src / commands / cmd_clearcache.cpp
index 5f1792928c1b293913f1637174eb18774e357c73..aa0ef2c3486c7c4c939711ef7d99071c303a6212 100644 (file)
@@ -24,6 +24,6 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
 CmdResult CommandClearcache::Handle (const std::vector<std::string>& parameters, User *user)
 {
        int n = ServerInstance->Res->ClearCache();
-       user->WriteServ("NOTICE %s :*** Cleared DNS cache of %d items.", user->nick, n);
+       user->WriteServ("NOTICE %s :*** Cleared DNS cache of %d items.", user->nick.c_str(), n);
        return CMD_SUCCESS;
 }