diff options
Diffstat (limited to 'src/cmd.c')
| -rw-r--r-- | src/cmd.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,8 @@ #include <atari.h> #include <stdio.h> #include "irc.h" +#include "addrs.h" +#include "screen.h" void cmd_chan_text(const char *cmd) { txbuf_set_str("PRIVMSG "); @@ -15,5 +17,9 @@ void cmd_command(const char *cmd) { txbuf_send_str(cmd + 1); else if(channel[0]) cmd_chan_text(cmd); - else ui_print("*** You are not on a channel\n"); + else scr_print(SCR_CURR, "*** You are not on a channel\n"); +} + +void cmd_execute(void) { + cmd_command(edit_box); } |
