Skip to content

Commit

Permalink
os_swhois: couple fixes to the previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
genius3000 committed Oct 10, 2023
1 parent 88b6d43 commit f22f627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os_swhois.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>("notifyonlogin", "yes"))
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit f22f627

Please sign in to comment.