From 819095bcf226d6b1a1cd71f8b0150710bc9850a0 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 11 Mar 2026 23:43:58 -0400 Subject: Add Start+T, dup checking in scr_create(). --- src/irc.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/irc.c') diff --git a/src/irc.c b/src/irc.c index 9777392..fa39df5 100644 --- a/src/irc.c +++ b/src/irc.c @@ -292,7 +292,7 @@ static void do_topic(void) { static void do_kick(void) { scr_print_active(msg_src); scr_print_active(" has kicked "); - scr_print_active(msg_args[2]); + scr_print_active(msg_args[1]); scr_print_active(" from "); scr_print_active(msg_dest); print_reason(); @@ -768,6 +768,13 @@ void ui_whois_or_ping(char is_ping) { } } +void ui_topic(void) { + if(!cur_is_chan()) + return; + txbuf_set_str2("TOPIC ", scr_names[scr_current]); + txbuf_send(); +} + void ui_part(void) { if(!cur_is_chan()) return; @@ -863,6 +870,9 @@ static void start_keystroke(void) { case 'p': ui_whois_or_ping(1); return; + case 't': + ui_topic(); + break; case 's': edbox_hide(); /* fall thru */ -- cgit v1.2.3