mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-24 13:53:25 +01:00
make sure default statusmsg shows correct version
This commit is contained in:
parent
d03a661635
commit
99e36195f7
@ -484,7 +484,7 @@ void prompt_init_statusbar(ToxWindow *self, Tox *m)
|
|||||||
strcpy(ver, TOXICVER);
|
strcpy(ver, TOXICVER);
|
||||||
uint8_t *toxic_ver = strtok(ver, "_");
|
uint8_t *toxic_ver = strtok(ver, "_");
|
||||||
|
|
||||||
if (!strcmp("Online", statusmsg) && toxic_ver != NULL)
|
if ( (!strcmp("Online", statusmsg) || !strncmp("Toxing on Toxic", statusmsg, 15)) && toxic_ver != NULL)
|
||||||
snprintf(statusmsg, MAX_STR_SIZE, "Toxing on Toxic v.%s", toxic_ver);
|
snprintf(statusmsg, MAX_STR_SIZE, "Toxing on Toxic v.%s", toxic_ver);
|
||||||
|
|
||||||
prompt_update_statusmessage(prompt, statusmsg, strlen(statusmsg) + 1);
|
prompt_update_statusmessage(prompt, statusmsg, strlen(statusmsg) + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user