From f22f62709b1d3c4cff8a2f63044e2b67d60dac6b Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Tue, 10 Oct 2023 16:44:19 -0600 Subject: [PATCH] os_swhois: couple fixes to the previous commit. --- os_swhois.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_swhois.cpp b/os_swhois.cpp index 6fd19c6..428a7da 100644 --- a/os_swhois.cpp +++ b/os_swhois.cpp @@ -597,7 +597,7 @@ class OSSWhois : public Module Serialize::Type swhoisentry_type; CommandOSSWhois commandosswhois; - void SetSWhois(const User *u, const SWhoisEntry *entry) + void SetSWhois(User *u, const SWhoisEntry *entry) { IRCD->SendSWhois(OperServ, u->nick, entry->swhois); if (Config->GetModule(this)->Get("notifyonlogin", "yes")) @@ -640,7 +640,7 @@ class OSSWhois : public Module SWhoisEntry *entry; if (useaccount) { - entry = SWhoisList.GetEntry(u->nc->display); + entry = SWhoisList.GetEntry(u->Account()->display); } else {