1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 13:36:36 +02:00

fix small bug, update readme, bump version

This commit is contained in:
Jfreegman
2014-07-23 15:15:14 -04:00
parent 9476db02a9
commit 8660047ec1
3 changed files with 5 additions and 5 deletions

View File

@ -382,7 +382,7 @@ void prompt_init_statusbar(ToxWindow *self, Tox *m)
strcpy(ver, TOXICVER);
const char *toxic_ver = strtok(ver, "_");
if ( (!strcmp("Online", statusmsg) || !strncmp("Toxing on Toxic", statusmsg, 15)) && toxic_ver != NULL) {
if ( (!statusmsg[0] || !strncmp("Toxing on Toxic", statusmsg, 15)) && toxic_ver != NULL) {
snprintf(statusmsg, MAX_STR_SIZE, "Toxing on Toxic v.%s", toxic_ver);
s_len = strlen(statusmsg);
statusmsg[s_len] = '\0';