From 3816ea7494c1be72b17fe05780cfd445c8458fab Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Mon, 27 Oct 2014 12:05:16 +0000 Subject: [PATCH] Don't execute an empty command for an empty branch in an /IF. Old behaviour was that /if (0) { echo y } would execute an empty command for the missing else case, which winds up doing send_text(""). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@513 13b04d17-f746-0410-82c6-800466cd88b0 --- source/if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/if.c b/source/if.c index 0e4a58e..b6f8cb7 100644 --- a/source/if.c +++ b/source/if.c @@ -157,7 +157,7 @@ BUILT_IN_COMMAND(ifcmd) current_line = NULL; } - if (current_line) + if (current_line && *current_line) parse_line(NULL, current_line, subargs, 0, 0, 1); break;