1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 09:16:45 +02:00

minor improvements and bug fixes

This commit is contained in:
Jfreegman
2013-08-12 19:50:50 -04:00
parent b2f4e266d3
commit 24083b3082
2 changed files with 29 additions and 11 deletions

2
main.c
View File

@ -124,6 +124,7 @@ static void init_term()
init_pair(2, COLOR_CYAN, COLOR_BLACK);
init_pair(3, COLOR_RED, COLOR_BLACK);
init_pair(4, COLOR_BLUE, COLOR_BLACK);
init_pair(5, COLOR_YELLOW, COLOR_BLACK);
}
refresh();
}
@ -139,6 +140,7 @@ static void init_tox()
m_callback_namechange(m, on_nickchange, NULL);
m_callback_statusmessage(m, on_statuschange, NULL);
m_callback_action(m, on_action, NULL);
setname(m, (uint8_t*) "n00b", strlen("n00b")+1);
}
#define MAXLINE 90 /* Approx max number of chars in a sever line (IP + port + key) */