Skip to content

Commit

Permalink
Remove an unused parameter; appease dscanner
Browse files Browse the repository at this point in the history
  • Loading branch information
zorael committed Feb 22, 2025
1 parent c13601c commit 568bf75
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/kameloso/plugins/services/persistence.d
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ auto postprocess(PersistenceService service, ref IRCEvent event)
+/
static void discoverAdmin(
PersistenceService service,
ref IRCUser user,
const long nowInUnix)
ref IRCUser user)
{
if ((user.class_ == IRCUser.Class.admin) ||
(user.class_ == IRCUser.Class.blacklist))
Expand Down Expand Up @@ -156,7 +155,7 @@ auto postprocess(PersistenceService service, ref IRCEvent event)
// into the global user
version(TwitchSupport) user.badges = string.init;

discoverAdmin(service, *user, event.time);
discoverAdmin(service, *user);
syncUserWithGlobal(service, *user, errors: event.errors);
}
}
Expand Down Expand Up @@ -330,7 +329,7 @@ auto postprocess(PersistenceService service, ref IRCEvent event)
Check the user for admin-ness. This also sets the class to anyone
if it should be unset for some reason.
+/
discoverAdmin(service, *stored, event.time);
discoverAdmin(service, *stored);

if (service.state.server.daemon != IRCServer.Daemon.twitch)
{
Expand Down

0 comments on commit 568bf75

Please sign in to comment.