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

truncate friends' notes if they're too long

This commit is contained in:
Jfreegman
2013-09-10 04:04:13 -04:00
parent f50f93ee81
commit 9e8fa92109
4 changed files with 200 additions and 178 deletions

View File

@ -65,10 +65,10 @@ struct ToxWindow_ {
typedef struct {
WINDOW *topline;
uint8_t statusmsg[TOX_MAX_STATUSMESSAGE_LENGTH];
uint16_t statusmsg_len;
uint8_t nick[TOX_MAX_NAME_LENGTH];
TOX_USERSTATUS status;
bool is_online;
int max_len; /* set to the window's max x coordinate */
} StatusBar;
void on_request(uint8_t *public_key, uint8_t *data, uint16_t length, void *userdata);