Fixed a crash if no Tox identities exist.
This commit is contained in:
parent
9486ffae81
commit
026b43e599
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ bar_item_away(void *data,
|
|||
{
|
||||
struct t_tox_weechat_identity *identity = tox_weechat_identity_for_buffer(buffer);
|
||||
|
||||
if (!identity)
|
||||
return NULL;
|
||||
|
||||
char *status = NULL;;
|
||||
switch (tox_get_self_user_status(identity->tox))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue