Skip to content

Commit

Permalink
nickserv/{setpass,sendpass_user}: fix a typo breaking the build
Browse files Browse the repository at this point in the history
  • Loading branch information
maxteufel committed Sep 24, 2016
1 parent 3cf9db6 commit e5ce76c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/nickserv/sendpass_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static void ns_cmd_sendpass(sourceinfo_t *si, int parc, char *parv[])

if (MOWGLI_LIST_LENGTH(&mu->logins) > 0)
{
if (si->mu == mu)
if (si->smu == mu)
command_fail(si, fault_already_authed, _("You are logged in and can change your password using the SET PASSWORD command."));
else
command_fail(si, fault_noprivs, _("This operation cannot be performed on %s, because someone is logged in to it."), entity(mu)->name);
Expand Down
2 changes: 1 addition & 1 deletion modules/nickserv/setpass.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static void ns_cmd_setpass(sourceinfo_t *si, int parc, char *parv[])
return;
}

if (si->mu == mu)
if (si->smu == mu)
{
command_fail(si, fault_already_authed, _("You are logged in and can change your password using the SET PASSWORD command."));
return;
Expand Down

0 comments on commit e5ce76c

Please sign in to comment.