diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2005-03-21 18:49:34 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2005-03-21 18:49:34 (GMT) |
commit | abe994ae16b892106e0b36d7be5bfd7e1100075c (patch) | |
tree | be899fbb5d23e280ca8ce17b1bf2da4d9afe0f28 /main.c | |
parent | cb2555e19237930a25989a7cd2bee4589f1d515d (diff) | |
download | powwow-abe994ae16b892106e0b36d7be5bfd7e1100075c.zip powwow-abe994ae16b892106e0b36d7be5bfd7e1100075c.tar.gz powwow-abe994ae16b892106e0b36d7be5bfd7e1100075c.tar.bz2 |
Internally renamed some option flags to match their #opt counterparts:
echo_int => opt_info
echo_key => opt_keyecho
echo_ext => opt_echo
As per the 1.2.6-dain patch
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -119,9 +119,9 @@ int line_status = 0; /* input line status: 0 = ready -> nothing to do; int limit_mem = 0; /* if !=0, max len of a string or text */ -char echo_ext = 1; /* 1 if text sent to MUD must be echoed */ -char echo_key = 1; /* 1 if binds must be echoed */ -char echo_int = 1; /* 0 if internal messages are suppressed */ +char opt_echo = 1; /* 1 if text sent to MUD must be echoed */ +char opt_keyecho = 1; /* 1 if binds must be echoed */ +char opt_info = 1; /* 0 if internal messages are suppressed */ char opt_exit = 0; /* 1 to autoquit when closing last conn. */ char opt_history; /* 1 if to save also history */ char opt_words = 0; /* 1 if to save also word completion list */ @@ -583,8 +583,8 @@ static void exec_delays __P0 (void) /* remember delayed command may modify the prompt and/or input line! */ if (prompt_status == 0) { - clear_input_line(opt_compact || !echo_int); - if (!opt_compact && echo_int && prompt_status == 0 && promptlen) { + clear_input_line(opt_compact || !opt_info); + if (!opt_compact && opt_info && prompt_status == 0 && promptlen) { tty_putc('\n'); col0 = 0; status(1); @@ -604,7 +604,7 @@ static void exec_delays __P0 (void) * (can't you imagine why? The command may edit itself...) */ - if (echo_int) + if (opt_info) tty_printf("#now [%s]\n", dying->command); if (*dying->command) { @@ -994,7 +994,7 @@ static void get_remote_input __P0 (void) common_clear(!opt_compact); } do { - if (echo_int) { + if (opt_info) { if (line_status == 0) { common_clear(!opt_compact); } @@ -1024,7 +1024,7 @@ static void get_remote_input __P0 (void) */ CONN_LIST(otcp_fd).fragment = my_strdup(buf); - if (echo_int) { + if (opt_info) { if (line_status == 0) { common_clear(!opt_compact); } @@ -1515,7 +1515,7 @@ char *get_next_instr __P1 (char *,p) static void send_line __P2 (char *,line, char,silent) { - if (!silent && echo_ext) { PRINTF("[%s]\n", line); } + if (!silent && opt_echo) { PRINTF("[%s]\n", line); } tcp_write(tcp_fd, line); } |