circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit 73d2ef5e5b1df58b43c536ce48217e6f15685303
parent 9ed7743335babc24b187744b772baa6613b4ff56
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Thu, 19 Apr 2018 20:15:09 +0200

New /rejoinall command.

Diffstat:
Mcirco.c | 10++++++++++
Mconfig.def.h | 1+
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/circo.c b/circo.c @@ -102,6 +102,7 @@ void cleanup(void); void cmd_close(char *cmd, char *s); void cmd_msg(char *cmd, char *s); void cmd_quit(char *cmd, char *s); +void cmd_rejoinall(char *cmd, char *s); void cmd_server(char *cmd, char *s); void cmd_topic(char *cmd, char *s); void cmdln_chldel(const Arg *arg); @@ -305,6 +306,15 @@ cmd_quit(char *cmd, char *s) { } void +cmd_rejoinall(char *cmd, char *s) { + Buffer *b; + + for(b = buffers; b; b = b->next) + if(b->name[0] == '#' || b->name[0] == '&') + sout("JOIN %s",b->name); +} + +void cmd_server(char *cmd, char *s) { char *h, *p; diff --git a/config.def.h b/config.def.h @@ -20,6 +20,7 @@ Command commands[] = { { "quit", cmd_quit }, { "server", cmd_server }, { "topic", cmd_topic }, + { "rejoinall", cmd_rejoinall }, }; /* key definitions */