From: Lars Ellenberg <Lars.Ellenberg@linbit.com>
[apps/madmutt.git] / main.c
diff --git a/main.c b/main.c
index 1458f72..d604a54 100644 (file)
--- a/main.c
+++ b/main.c
@@ -639,10 +639,11 @@ int main (int argc, char **argv)
       break;
 
     case 'd':
-      debug_setlevel(atoi(optarg));
-#ifndef DEBUG
-      printf _("DEBUG was not defined during compilation.  Ignored.\n");
-#endif
+      {
+        char puke[20];
+        snprintf (puke, sizeof (puke), "set debug_level=%d", atoi (optarg));
+        commands = mutt_add_list (commands, puke);
+      }
       break;
 
     case 't':
@@ -707,7 +708,7 @@ int main (int argc, char **argv)
       {
         char buf[LONG_STRING];
 
-        snprintf (buf, sizeof (buf), "set news_server=%s", optarg);
+        snprintf (buf, sizeof (buf), "set nntp_host=%s", optarg);
         commands = mutt_add_list (commands, buf);
       }