1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-22 22:33:25 +01:00

don't show version in default status message

This commit is contained in:
Jfreegman 2014-09-30 17:02:03 -04:00
parent 97a8ecd115
commit ae984d4f04
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -408,13 +408,8 @@ void prompt_init_statusbar(ToxWindow *self, Tox *m)
nick[n_len] = '\0';
statusmsg[s_len] = '\0';
/* load prev status message or show toxic version if it has never been set */
char ver[strlen(TOXICVER) + 1];
strcpy(ver, TOXICVER);
const char *toxic_ver = strtok(ver, "_");
if ( (s_len <= 0 || !strncmp("Toxing on Toxic", statusmsg, strlen("Toxing on Toxic"))) && toxic_ver != NULL) {
snprintf(statusmsg, sizeof(statusmsg), "Toxing on Toxic v.%s", toxic_ver);
if (s_len == 0 || !strncmp(statusmsg, "Toxing on Toxic", strlen("Toxing on Toxic"))) {
snprintf(statusmsg, sizeof(statusmsg), "Toxing on Toxic");
s_len = strlen(statusmsg);
statusmsg[s_len] = '\0';
}