diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-11 23:43:58 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-11 23:43:58 -0400 |
| commit | 819095bcf226d6b1a1cd71f8b0150710bc9850a0 (patch) | |
| tree | 2213f46d29b818d24172486a6c3193264f01da6b /src/irc.c | |
| parent | 4ac4aa49d77da3f471ca34a025074cf4a10be841 (diff) | |
| download | fujinet-chat-819095bcf226d6b1a1cd71f8b0150710bc9850a0.tar.gz | |
Add Start+T, dup checking in scr_create().
Diffstat (limited to 'src/irc.c')
| -rw-r--r-- | src/irc.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 */ |
