aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd.c b/src/cmd.c
index 3c7f482..1eccdf5 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -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);
}