aboutsummaryrefslogtreecommitdiff
path: root/src/irc.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-30 03:42:56 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-30 03:42:56 -0400
commit7ea5c2713b539b98c3a9f4cf1eae7c974a8d71a6 (patch)
tree853e497e3220a9edbd307b46595d8a93564aafb3 /src/irc.c
parent7046449b579e2fce3bfc58cba7ec174d104878cb (diff)
downloadfujinet-chat-7ea5c2713b539b98c3a9f4cf1eae7c974a8d71a6.tar.gz
Ditch txbuf_append_str3(), remove "has/have" from "joined" message. Now at 4922 bytes free.
Diffstat (limited to 'src/irc.c')
-rw-r--r--src/irc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/irc.c b/src/irc.c
index 3a7d901..5bdb5f0 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -206,8 +206,10 @@ static void do_ctcp(int is_notice) {
}
txbuf_set_str3("NOTICE ", msg_src, " :\x01");
- txbuf_append_str3(ctcp_type, " ", resp);
- txbuf_append_str("\x01");
+ txbuf_append_str(ctcp_type);
+ txbuf_append_chr(' ');
+ txbuf_append_str(resp);
+ txbuf_append_str('\x01');
txbuf_send();
}
}
@@ -251,11 +253,10 @@ static void do_notice(void) {
static void do_join(void) {
ind_act_join();
if(streq_i(conf->nick, msg_src)) {
- scr_print_active("You have ");
+ scr_print_active("You ");
} else {
scr_print_active("\x02=\x02");
scr_print_active(msg_src);
- scr_print_active(" has ");
}
scr_print_active("joined ");
scr_print_active(msg_dest);