diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-04 21:45:54 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-04 21:45:54 +0000 |
commit | 0a86cf7e378172d8eff421268c7d65d1ae083533 (patch) | |
tree | bf0226a08d213f1afd7ad079ef227b08dadb06af | |
parent | 78bbff304e3a400dc134ee099e6f33201c68bce8 (diff) | |
download | irssi-0a86cf7e378172d8eff421268c7d65d1ae083533.zip |
/CAT, /HELP xx and reading autorun commands stuck irssi to infinite
loop.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@431 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/core/autorun.c | 2 | ||||
-rw-r--r-- | src/fe-common/core/fe-core-commands.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/core/autorun.c b/src/fe-common/core/autorun.c index ade54188..506e45ff 100644 --- a/src/fe-common/core/autorun.c +++ b/src/fe-common/core/autorun.c @@ -45,7 +45,7 @@ static void sig_autorun(void) ret = line_split(tmpbuf, recvlen, &str, &buffer); if (ret > 0) eval_special_string(str, "", active_win->active_server, active_win->active); - } while (ret >= 0); + } while (ret > 0); line_split_free(buffer); close(f); diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c index 7f5b4506..251ecc3b 100644 --- a/src/fe-common/core/fe-core-commands.c +++ b/src/fe-common/core/fe-core-commands.c @@ -132,7 +132,7 @@ static int show_help(COMMAND_REC *cmd) ret = line_split(tmpbuf, recvlen, &str, &buffer); if (ret > 0) printtext(NULL, NULL, MSGLEVEL_NEVER, str); } - while (ret >= 0); + while (ret > 0); line_split_free(buffer); close(f); @@ -269,7 +269,7 @@ static void cmd_cat(const char *data) ret = line_split(tmpbuf, recvlen, &str, &buffer); if (ret > 0) printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, "%s", str); - } while (ret >= 0); + } while (ret > 0); line_split_free(buffer); close(f); |