aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/cmd.c b/src/cmd.c
index ced02fe..0ca0056 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -5,6 +5,7 @@
#include "irc.h"
#include "addrs.h"
#include "screen.h"
+#include "edbox.h"
#include "config.h"
/* A "command" is actually anything the user types, whether or
@@ -157,9 +158,15 @@ static void join_arg1(void) {
static void mass_join(int scr) {
if(have_commas())
return;
+ scr_print_current("joining ");
do {
arg2 = nextarg(arg1);
- if(scr) scr_create(arg1, 1);
+ if(scr) {
+ scr_create(arg1, 1);
+ } else {
+ scr_print_current(arg1);
+ scr_eol_current();
+ }
join_arg1();
arg1 = arg2;
} while(arg1);
@@ -481,10 +488,16 @@ void cmd_execute(void) {
void cmd_rejoin_chans(void) {
char i;
+
for(i = 2; i < MAX_SCREENS; i++) {
if(scr_names[i][0] == '#') {
arg1 = scr_names[i];
join_arg1();
}
}
+
+ strncpy(edit_box, conf->extra_channels, 128);
+ arg1 = edit_box;
+ mass_join(0);
+ edbox_clear();
}