1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-06 20:26:35 +01:00

generalize command matching loop

This commit is contained in:
Jfreegman
2013-11-10 13:23:47 -05:00
parent 5a7f26cfea
commit bc4e089a65
6 changed files with 81 additions and 79 deletions

View File

@@ -11,11 +11,11 @@
#include "toxic_windows.h"
#include "misc_tools.h"
#include "chat_commands.h"
#include "execute.h"
extern uint8_t pending_grp_requests[MAX_FRIENDS_NUM][TOX_CLIENT_ID_SIZE];
void cmd_help(WINDOW *window, ToxWindow *chatwin, Tox *m, int argc, char (*argv)[MAX_STR_SIZE])
void cmd_chat_help(WINDOW *window, ToxWindow *chatwin, Tox *m, int argc, char (*argv)[MAX_STR_SIZE])
{
wattron(window, COLOR_PAIR(CYAN) | A_BOLD);
wprintw(window, "Chat commands:\n");