From d8c844c0320f816d5f7235fdc171c3e4d964a737 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 18 Feb 2026 18:09:11 -0500 Subject: Getting closer to working. --- src/cmd.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/cmd.c') diff --git a/src/cmd.c b/src/cmd.c index 89d8c4c..c187bb9 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -4,7 +4,24 @@ #include "addrs.h" #include "screen.h" +/* A "command" is actually anything the user types, whether or + not it starts with a /character. */ + void cmd_chan_text(const char *cmd) { + char s; + + s = scr_getbyname(channel); + scr_activate(s); + + /* 0x02 = ^B = enable bold */ + scr_print_active("\x02<"); + scr_print_active(usernick); + if(!s) { + scr_print_active("/"); + scr_print_active(channel); + } + scr_print_active(">\x02 "); + txbuf_set_str("PRIVMSG "); txbuf_append_str(channel); txbuf_append_str(" :"); -- cgit v1.2.3