36 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
37 |
*/ |
*/ |
38 |
|
|
|
|
|
39 |
/* weechat.c: core functions for WeeChat */ |
/* weechat.c: core functions for WeeChat */ |
40 |
|
|
41 |
|
|
42 |
|
#ifdef HAVE_CONFIG_H |
43 |
|
#include "config.h" |
44 |
|
#endif |
45 |
|
|
46 |
#include <errno.h> |
#include <errno.h> |
47 |
#include <stdlib.h> |
#include <stdlib.h> |
48 |
#include <stdio.h> |
#include <stdio.h> |
52 |
#include <time.h> |
#include <time.h> |
53 |
|
|
54 |
#include "weechat.h" |
#include "weechat.h" |
55 |
#include "config.h" |
#include "weeconfig.h" |
56 |
#include "command.h" |
#include "command.h" |
57 |
#include "../irc/irc.h" |
#include "../irc/irc.h" |
58 |
#include "../gui/gui.h" |
#include "../gui/gui.h" |
131 |
else if ((strcmp (argv[i], "-v") == 0) |
else if ((strcmp (argv[i], "-v") == 0) |
132 |
|| (strcmp (argv[i], "--version") == 0)) |
|| (strcmp (argv[i], "--version") == 0)) |
133 |
{ |
{ |
134 |
printf (WEECHAT_VERSION "\n"); |
printf (PACKAGE_VERSION "\n"); |
135 |
exit (0); |
exit (0); |
136 |
} |
} |
137 |
else |
else |
283 |
{ |
{ |
284 |
gui_printf_color (NULL, COLOR_WIN_CHAT, _("%sWelcome to "), |
gui_printf_color (NULL, COLOR_WIN_CHAT, _("%sWelcome to "), |
285 |
(cfg_look_startup_logo) ? " " : ""); |
(cfg_look_startup_logo) ? " " : ""); |
286 |
gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX2, WEECHAT_NAME); |
gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX2, PACKAGE_NAME); |
287 |
gui_printf_color (NULL, COLOR_WIN_CHAT, |
gui_printf_color (NULL, COLOR_WIN_CHAT, |
288 |
", %s\n", cfg_look_weechat_slogan); |
", %s\n", cfg_look_weechat_slogan); |
289 |
} |
} |
290 |
if (cfg_look_startup_version) |
if (cfg_look_startup_version) |
291 |
{ |
{ |
292 |
gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX2, |
gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX2, |
293 |
"%s" WEECHAT_NAME_AND_VERSION, |
"%s" PACKAGE_STRING, |
294 |
(cfg_look_startup_logo) ? " " : ""); |
(cfg_look_startup_logo) ? " " : ""); |
295 |
gui_printf_color (NULL, COLOR_WIN_CHAT, |
gui_printf_color (NULL, COLOR_WIN_CHAT, |
296 |
", %s %s %s\n", |
", %s %s %s\n", |