]> jfr.im git - irc/atheme/atheme.git/commitdiff
nickserv/{setpass,sendpass_user}: fix a typo breaking the build
authorMax Teufel <redacted>
Sat, 24 Sep 2016 14:03:43 +0000 (16:03 +0200)
committerMax Teufel <redacted>
Sat, 24 Sep 2016 14:04:35 +0000 (16:04 +0200)
(cherry picked from commit e5ce76c8e6c20f12445b35e23e0ae54eb97eb1e0)

modules/nickserv/sendpass_user.c
modules/nickserv/setpass.c

index 20097fafde3e4b5f93ac9021bc06f28bbc7db3d8..256a5eb1fa253b2ddc943b06620c904329a0d955 100644 (file)
@@ -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);
index cd0e613f7472f21d738f555765e96c3bec6ae4ac..b0bbf3d830f7cfb1e6ca4730738fed601bbeb6af 100644 (file)
@@ -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;