Validation on msg command

This commit is contained in:
James Booth
2012-02-19 00:17:36 +00:00
parent 94c97e08ab
commit 9f6356a8f7
3 changed files with 72 additions and 25 deletions

View File

@@ -229,6 +229,15 @@ void cons_bad_connect(void)
" [%s] Usage: /connect user@host\n", tstmp);
}
void cons_bad_message(void)
{
char tstmp[80];
get_time(tstmp);
wprintw(_wins[0].win,
" [%s] Usage: /msg user@host message\n", tstmp);
}
static void _create_windows(void)
{
int rows, cols;