src/main.c
changeset 23 1cd79bb84e9c
parent 18 4435146391ae
child 29 08ec6ddd6eea
equal deleted inserted replaced
22:b786b5f92a93 23:1cd79bb84e9c
    43     if (bindtextdomain ("mcbot", LOCALE_PATH) != NULL) {
    43     if (bindtextdomain ("mcbot", LOCALE_PATH) != NULL) {
    44         (void)textdomain ("mcbot");
    44         (void)textdomain ("mcbot");
    45         (void)setlocale (LC_MESSAGES, "");
    45         (void)setlocale (LC_MESSAGES, "");
    46     }
    46     }
    47 
    47 
    48     printf ("mcbot-%1.2f\n", BOT_VERSION);
    48     printf ("mcbot-%1.2f Build %s\n", BOT_VERSION, BOT_BUILD);
    49 
    49 
    50     if ((len = config (&uc, CONFIG_FILE)) != 0) {
    50     if ((len = config (&uc, CONFIG_FILE)) != 0) {
    51         switch (len) {
    51         switch (len) {
    52         case -1:
    52         case -1:
    53             printf ("You need to create a config file %s\n", CONFIG_FILE);
    53             printf ("You need to create a config file %s\n", CONFIG_FILE);