aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-02-18 18:09:11 -0500
committerB. Watson <urchlay@slackware.uk>2026-02-18 18:09:11 -0500
commitd8c844c0320f816d5f7235fdc171c3e4d964a737 (patch)
treeb173c05bb622d8c6089dafb9427be99a6339f36e /src/cmd.c
parente05376aefc6b342859e8cddf9eca647dc61c3336 (diff)
downloadfujinet-chat-d8c844c0320f816d5f7235fdc171c3e4d964a737.tar.gz
Getting closer to working.
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c17
1 files changed, 17 insertions, 0 deletions
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(" :");