# HG changeset patch # User Mikael Berthe # Date 1268169435 -3600 # Node ID ad87c711de845396846e8c38b780788f68c7bb0f # Parent c2ad0b151a5e595a154a00fc97be353fd15a5205 Add a warning when loading module extsay diff -r c2ad0b151a5e -r ad87c711de84 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 */