diff options
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(" :"); |
