circo

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

commit cd0926281fa31ecfd67599cd39f897324f72ac6c
parent 878dd61a08c035adec9d1ee6144239d8a04a44dd
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Tue, 25 Jul 2017 22:52:34 +0200

Add default quit message.

Diffstat:
Mcirco.c | 2+-
Mconfig.def.h | 3+++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/circo.c b/circo.c @@ -267,7 +267,7 @@ cmd_msg(char *cmd, char *s) { void cmd_quit(char *cmd, char *s) { if(srv) - sout("QUIT%s%s", s ? " :" : "", s ? s : ""); + sout("QUIT :%s", s ? s : QUIT_MESSAGE); running = 0; } diff --git a/config.def.h b/config.def.h @@ -3,6 +3,9 @@ /* Timestamp format; see strftime(3). */ #define TIMESTAMP_FORMAT "%Y-%m-%d %T | " +/* Used if no message is specified */ +#define QUIT_MESSAGE "circo" + Command commands[] = { /* command function */ { "close", cmd_close },