diff options
author | B. Watson <yalhcru@gmail.com> | 2019-03-13 06:36:35 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2019-03-13 06:36:35 -0400 |
commit | 8ab81cf1ed76a60f629473582f996b3d008476e1 (patch) | |
tree | ccc587e80d19432511fbae1989ab0868d6d5730f /src | |
parent | ee5ba57c464a3e62d363c6db5a774bbeb4a242f4 (diff) | |
download | fujichat-8ab81cf1ed76a60f629473582f996b3d008476e1.tar.gz |
/part takes optional message
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.c | 9 | ||||
-rw-r--r-- | src/fujichat.atr | bin | 92176 -> 92176 bytes | |||
-rw-r--r-- | src/fujitest.atr | bin | 92176 -> 92176 bytes |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/commands.c b/src/commands.c index dc9aec6..f23b81d 100644 --- a/src/commands.c +++ b/src/commands.c @@ -29,7 +29,7 @@ fuji_cmd_t cmd_list[] = { { "MSG", ARGTYPE_REQUIRED, cmd_msg }, { "M", ARGTYPE_REQUIRED, cmd_msg }, { "NICK", ARGTYPE_OPT, cmd_nick }, - { "PART", ARGTYPE_NONE, cmd_part }, + { "PART", ARGTYPE_OPT, cmd_part }, { "PING", ARGTYPE_REQUIRED, cmd_ping }, { "QUIT", ARGTYPE_OPT, cmd_quit }, { "QUOTE", ARGTYPE_REQUIRED, cmd_quote }, @@ -108,7 +108,12 @@ void cmd_join(void) { void cmd_part(void) { joined_channel = 0; - send_server_cmd("PART", channel); + if(cmd_arg) { + serv_msg_buf_len = sprintf(serv_msg_buf, "PART %s :%s%c", channel, cmd_arg, NL); + send_serv_msg_buf(); + } else { + send_server_cmd("PART", channel); + } } void cmd_msg(void) { diff --git a/src/fujichat.atr b/src/fujichat.atr Binary files differindex 92ec181..98d81b6 100644 --- a/src/fujichat.atr +++ b/src/fujichat.atr diff --git a/src/fujitest.atr b/src/fujitest.atr Binary files differindex 35fc257..98f0d4d 100644 --- a/src/fujitest.atr +++ b/src/fujitest.atr |