Lua improvements:
[apps/madmutt.git] / lib-ui / curs_main.c
index 246f240..600932a 100644 (file)
@@ -479,7 +479,7 @@ int mutt_index_menu (void)
           sidebar_draw ();
           mutt_message (_("New mail in this mailbox."));
 
           sidebar_draw ();
           mutt_message (_("New mail in this mailbox."));
 
-          if (option (OPTBEEPNEW))
+          if (ml_core.beep_new)
             beep ();
         }
         else if (check == M_FLAGS)
             beep ();
         }
         else if (check == M_FLAGS)
@@ -506,7 +506,7 @@ int mutt_index_menu (void)
         menu->redraw |= REDRAW_SIDEBAR;
       }
       if (do_buffy_notify) {
         menu->redraw |= REDRAW_SIDEBAR;
       }
       if (do_buffy_notify) {
-        if (buffy_notify () && option (OPTBEEPNEW))
+        if (buffy_notify () && ml_core.beep_new)
           beep ();
       }
       else
           beep ();
       }
       else