From d865b434865907bfad0a187dd403d4ca8144e469 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 22 Oct 2017 21:53:24 +0100 Subject: Hide User#host and User#dhost and use accessors to modify them. This removes the need to invalidate the cache after changing a user's hostname. --- include/modules/sql.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/modules') diff --git a/include/modules/sql.h b/include/modules/sql.h index 3f378d8b8..f81a85a33 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -174,7 +174,7 @@ class SQLProvider : public DataProvider void PopulateUserInfo(User* user, ParamM& userinfo) { userinfo["nick"] = user->nick; - userinfo["host"] = user->host; + userinfo["host"] = user->GetRealHost(); userinfo["ip"] = user->GetIPString(); userinfo["gecos"] = user->fullname; userinfo["ident"] = user->ident; -- cgit v1.2.3