diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.c | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/config/config.c b/config/config.c index ac3ade1..0088675 100644 --- a/config/config.c +++ b/config/config.c @@ -15,10 +15,12 @@ conf_t defaults = { "FujiNetChat User", { 0xc0, 0x0c }, { "#testari8", { 0 }, { 0 }, { 0 }, { 0 } }, - 3, /* alert_type, default = both */ - 0, /* show_ping, default = N */ - 1, /* hide_motd, default = Y */ - 1 /* atract_away, default = Y */ + { 0 }, /* extra_channels */ + 3, /* alert_type, default = both */ + 0, /* show_ping, default = N */ + 1, /* hide_motd, default = Y */ + 1, /* atract_away, default = Y */ + 0, /* disable_keyclick, default = N */ }; char have_dos = 0; @@ -295,7 +297,7 @@ void list_chans(void) { void prompt_channels(void) { char c, d, ok; - print("\nAutojoin channels in screens.\n\n"); + print("\nAutojoin channels in screens 3-7.\n\n"); list_chans(); putchar('\n'); @@ -340,6 +342,29 @@ void prompt_channels(void) { } } +void prompt_extra_channels(void) { + char r, done; + + print("\nAutojoin channels in screen 1.\n\n"); + print("Enter up to 3 lines of channel names.\n"); + print("Use normal Atari editing keys.\n"); + + do { + print("Channels: \n\n\n\n\x1c\x1c\x1c"); + r = OS.rowcrs; + print(conf->extra_channels); + OS.rowcrs = r; + OS.colcrs = 0; + putchar(CH_CURS_RIGHT); + putchar(CH_CURS_LEFT); + + gets(buf); + strncpy(conf->extra_channels, buf, 128); + + done = yn("OK", 1); + } while(!done); +} + void set_default_config(void) { memcpy(conf, &defaults, sizeof(conf_t)); } @@ -387,6 +412,7 @@ void main(void) { conf->atract_away = yn("Set AWAY on ATRACT", conf->atract_away); conf->hide_motd = yn("Hide MOTD", conf->hide_motd); prompt_channels(); + prompt_extra_channels(); make_url(); |
