diff options
| -rw-r--r-- | TODO | 3 | ||||
| -rw-r--r-- | src/cmd.c | 20 |
2 files changed, 16 insertions, 7 deletions
@@ -21,7 +21,8 @@ Other stuff: be 0x20 or 0x00, they're both "spaces"). - In the config, under SDX, saying "N" to "Settings OK" and then reloading the config causes screen corruption (reported by - TheDoctor, not tried it myself). + TheDoctor, not tried it myself). The config tool has changed a + lot since then, so re-check. - "User has kicked <yourname> from #channel", the name should be replaced by "you". - Gracefully handle nicks/channels whose lengths are stupid long. @@ -154,23 +154,31 @@ static void join_arg1(void) { txbuf_send(); } -static void do_j1(void) { +static void mass_join(int scr) { if(have_commas()) return; - join_arg1(); + do { + arg2 = nextarg(arg1); + if(scr) scr_create(arg1, 1); + join_arg1(); + arg1 = arg2; + } while(arg1); +} + +static void do_j1(void) { + mass_join(0); } static void do_j(void) { if(!arg1) arg1 = target; /* rejoin channel if window is 'dead' */ + if(!arg1) { err_no_scr_target(); return; } - if(have_commas()) - return; - scr_create(arg1, 1); - do_j1(); + + mass_join(1); } static void do_quit(void) { |
