Fixed connecting/disconnecting.
This commit is contained in:
parent
f7b086d38d
commit
7c81c9dcfc
5 changed files with 94 additions and 75 deletions
|
|
@ -45,10 +45,7 @@ tox_weechat_do_timer_cb(void *data,
|
|||
|
||||
// check connection status
|
||||
int connected = tox_isconnected(identity->tox);
|
||||
if (connected ^ identity->tox_online)
|
||||
{
|
||||
tox_weechat_identity_set_online_status(identity, connected);
|
||||
}
|
||||
tox_weechat_identity_set_online_status(identity, connected);
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue