1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 19:43:26 +01:00

make sure default statusmsg shows correct version

This commit is contained in:
Jfreegman 2014-03-17 20:38:30 -04:00
parent d03a661635
commit 99e36195f7

View File

@ -484,7 +484,7 @@ void prompt_init_statusbar(ToxWindow *self, Tox *m)
strcpy(ver, TOXICVER);
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);
prompt_update_statusmessage(prompt, statusmsg, strlen(statusmsg) + 1);