mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 03:03:02 +01:00
Have toxic handle new no-spam values from friend request
This commit is contained in:
parent
2857e6af8f
commit
ce9d066054
6
prompt.c
6
prompt.c
@ -138,6 +138,12 @@ void cmd_add(ToxWindow *self, Messenger *m, char **args)
|
|||||||
case FAERR_UNKNOWN:
|
case FAERR_UNKNOWN:
|
||||||
wprintw(self->window, "Undefined error when adding friend.\n");
|
wprintw(self->window, "Undefined error when adding friend.\n");
|
||||||
break;
|
break;
|
||||||
|
case FAERR_BADCHECKSUM:
|
||||||
|
wprintw(self->window, "Bad checksum in address.\n");
|
||||||
|
break;
|
||||||
|
case FAERR_SETNEWNOSPAM:
|
||||||
|
wprintw(self->window, "Nospam was different.\n");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
wprintw(self->window, "Friend added as %d.\n", num);
|
wprintw(self->window, "Friend added as %d.\n", num);
|
||||||
on_friendadded(num);
|
on_friendadded(num);
|
||||||
|
Loading…
Reference in New Issue
Block a user