small fix

This commit is contained in:
Jfreegman 2013-07-31 17:38:39 -04:00
parent 0ae9ec1815
commit 44d9e24855

View File

@ -188,7 +188,7 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line)
uint8_t numf = atoi(line + 3);
char numchar[100];
int num = m_addfriend_norequest(pending_requests[numf]);
if (num >= 0) {
if (num != -1) {
sprintf(numchar, "[i] friend request %u accepted", numf);
new_lines(numchar);
sprintf(numchar, "[i] added friendnumber %d", num);