aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
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(" :");