diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-02-18 18:09:11 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-02-18 18:09:11 -0500 |
| commit | d8c844c0320f816d5f7235fdc171c3e4d964a737 (patch) | |
| tree | b173c05bb622d8c6089dafb9427be99a6339f36e /src/cmd.c | |
| parent | e05376aefc6b342859e8cddf9eca647dc61c3336 (diff) | |
| download | fujinet-chat-d8c844c0320f816d5f7235fdc171c3e4d964a737.tar.gz | |
Getting closer to working.
Diffstat (limited to 'src/cmd.c')
| -rw-r--r-- | src/cmd.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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(" :"); |
