Add a warning when loading module extsay
authorMikael Berthe <mikael@lilotux.net>
Tue, 09 Mar 2010 22:17:15 +0100
changeset 7 ad87c711de84
parent 6 c2ad0b151a5e
child 8 53b0091ecd47
Add a warning when loading module extsay
extsay/extsay.c
--- a/extsay/extsay.c	Tue Mar 09 21:47:34 2010 +0100
+++ b/extsay/extsay.c	Tue Mar 09 22:17:15 2010 +0100
@@ -90,11 +90,10 @@
 
   msg = load_message_from_file(tmpfile);
 
-  if (g_unlink(tmpfile) != 0) {
-    scr_LogPrint(LPRINT_NORMAL,"Warning, could not remove temp file.");
-  }
+  if (g_unlink(tmpfile) != 0)
+    scr_LogPrint(LPRINT_NORMAL, "Warning, could not remove temp file.");
 
- return msg;
+  return msg;
 }
 
 static void do_extsay(char *args)
@@ -112,6 +111,11 @@
   /* Add command */
   cmd_add("extsay", "Use external editor to write a message",
           0, 0, do_extsay, NULL);
+  scr_LogPrint(LPRINT_NORMAL, "Loading module extsay...\n"
+               "** Be careful, everything is on hold while you run the "
+               "external editor.\n"
+               "** Do not run it for too long!"
+               );
 }
 
 /* Deinitialization */