diff --git a/src/Hooks.cpp b/src/Hooks.cpp index bd6d8641c..c99ab6425 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -300,7 +300,8 @@ int Hooks::execute ( if (fp) { // Write input to fp. - if (input != "") + if (input != "" && + input != "\n") { fputs (input.c_str (), fp); fflush (fp);