summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 21:10:01 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 21:10:01 -0500
commit26414f0916d7e57354ce6c6496025b61707e46de (patch)
tree38e318d71f459c95e98bba9209361f2ef5888e6a /parser.c
parent7278bf2284f354a24aeabf4e63bff39f3047cbaa (diff)
fix to ignore empty input strings
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index b1fe924..54bae16 100644
--- a/parser.c
+++ b/parser.c
@@ -144,7 +144,9 @@ static int Parser_id_word(char *id_me, int *channel, int *with_id_code)
}
- if (!strcmp(id_me,"*cls") ) {
+ if (!strcmp(id_me,"") ) {
+ id_code = 0;
+ } else if (!strcmp(id_me,"*cls") ) {
id_code = 1;
} else if (!strcmp(id_me,"*ese") ) {
id_code = 2;