1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 04:56:34 +01:00

bug fixes and code cleanup

This commit is contained in:
Jfreegman
2014-09-28 17:49:48 -04:00
parent a01cc35368
commit 33cfca7ecc
11 changed files with 54 additions and 46 deletions

View File

@@ -223,7 +223,7 @@ static void queue_init_message(const char *msg, ...)
init_messages.msgs = new_msgs;
}
/* called after messages have been printed to console and are no longer needed */
/* called after messages have been printed to prompt and are no longer needed */
static void cleanup_init_messages(void)
{
if (init_messages.num <= 0)
@@ -1062,6 +1062,7 @@ int main(int argc, char *argv[])
print_init_messages(prompt);
cleanup_init_messages();
/* set user avatar from config file. if no valid path is supplied tox_unset_avatar is called */
char avatarstr[MAX_STR_SIZE];
snprintf(avatarstr, sizeof(avatarstr), "/avatar \"%s\"", user_settings->avatar_path);
execute(prompt->chatwin->history, prompt, m, avatarstr, GLOBAL_COMMAND_MODE);