/[weechat]/weechat/src/common/weechat.c
ViewVC logotype

Diff of /weechat/src/common/weechat.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.63 by flashcode, Sun Oct 30 19:22:54 2005 UTC revision 1.64 by flashcode, Fri Nov 4 11:53:25 2005 UTC
# Line 169  void Line 169  void
169  wee_log_printf (char *message, ...)  wee_log_printf (char *message, ...)
170  {  {
171      static char buffer[4096];      static char buffer[4096];
172        char *ptr_buffer;
173      va_list argptr;      va_list argptr;
174      static time_t seconds;      static time_t seconds;
175      struct tm *date_tmp;      struct tm *date_tmp;
# Line 180  wee_log_printf (char *message, ...) Line 181  wee_log_printf (char *message, ...)
181      vsnprintf (buffer, sizeof (buffer) - 1, message, argptr);      vsnprintf (buffer, sizeof (buffer) - 1, message, argptr);
182      va_end (argptr);      va_end (argptr);
183            
184        /* keep only valid chars */
185        ptr_buffer = buffer;
186        while (ptr_buffer[0])
187        {
188            if ((ptr_buffer[0] != '\n')
189                && (ptr_buffer[0] != '\r')
190                && ((unsigned char)(ptr_buffer[0]) < 32))
191                ptr_buffer[0] = '.';
192            ptr_buffer++;
193        }
194        
195      seconds = time (NULL);      seconds = time (NULL);
196      date_tmp = localtime (&seconds);      date_tmp = localtime (&seconds);
197      if (date_tmp)      if (date_tmp)
# Line 667  weechat_welcome_message () Line 679  weechat_welcome_message ()
679  {  {
680      if (cfg_look_startup_logo)      if (cfg_look_startup_logo)
681      {      {
682          gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX1,          gui_printf (NULL,
683              "   ___       __         ______________        _____ \n"                      "%s   ___       __         ______________        _____ \n"
684              "   __ |     / /___________  ____/__  /_______ __  /_\n"                      "%s   __ |     / /___________  ____/__  /_______ __  /_\n"
685              "   __ | /| / /_  _ \\  _ \\  /    __  __ \\  __ `/  __/\n"                      "%s   __ | /| / /_  _ \\  _ \\  /    __  __ \\  __ `/  __/\n"
686              "   __ |/ |/ / /  __/  __/ /___  _  / / / /_/ // /_  \n"                      "%s   __ |/ |/ / /  __/  __/ /___  _  / / / /_/ // /_  \n"
687              "   ____/|__/  \\___/\\___/\\____/  /_/ /_/\\__,_/ \\__/  \n");                      "%s   ____/|__/  \\___/\\___/\\____/  /_/ /_/\\__,_/ \\__/  \n",
688                        GUI_COLOR(COLOR_WIN_CHAT_NICK),
689                        GUI_COLOR(COLOR_WIN_CHAT_NICK),
690                        GUI_COLOR(COLOR_WIN_CHAT_NICK),
691                        GUI_COLOR(COLOR_WIN_CHAT_NICK),
692                        GUI_COLOR(COLOR_WIN_CHAT_NICK));
693      }      }
694      if (cfg_look_weechat_slogan && cfg_look_weechat_slogan[0])      if (cfg_look_weechat_slogan && cfg_look_weechat_slogan[0])
695      {      {
696          gui_printf_color (NULL, COLOR_WIN_CHAT, _("%sWelcome to "),          gui_printf (NULL, _("%sWelcome to %s%s%s, %s\n"),
697                            (cfg_look_startup_logo) ? "      " : "");                      (cfg_look_startup_logo) ? "      " : "",
698          gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX2, PACKAGE_NAME);                      GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
699          gui_printf_color (NULL, COLOR_WIN_CHAT,                      PACKAGE_NAME,
700                            ", %s\n", cfg_look_weechat_slogan);                      GUI_NO_COLOR,
701                        cfg_look_weechat_slogan);
702      }      }
703      if (cfg_look_startup_version)      if (cfg_look_startup_version)
704      {      {
705          gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX2,          gui_printf (NULL, "%s%s%s%s, %s %s %s\n",
706                            "%s" PACKAGE_STRING,                      (cfg_look_startup_logo) ? "    " : "",
707                            (cfg_look_startup_logo) ? "    " : "");                      GUI_COLOR(COLOR_WIN_CHAT_CHANNEL),
708          gui_printf_color (NULL, COLOR_WIN_CHAT,                      PACKAGE_STRING,
709                            ", %s %s %s\n",                      GUI_NO_COLOR,
710                            _("compiled on"), __DATE__, __TIME__);                      _("compiled on"), __DATE__, __TIME__);
711      }      }
712      if (cfg_look_startup_logo ||      if (cfg_look_startup_logo ||
713          (cfg_look_weechat_slogan && cfg_look_weechat_slogan[0]) ||          (cfg_look_weechat_slogan && cfg_look_weechat_slogan[0]) ||
714          cfg_look_startup_version)          cfg_look_startup_version)
715          gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX1,          gui_printf (NULL,
716              "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");                      "%s-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n",
717                        GUI_COLOR(COLOR_WIN_CHAT_NICK));
718            
719      wee_log_printf ("%s (%s %s %s)\n",      wee_log_printf ("%s (%s %s %s)\n",
720                      PACKAGE_STRING, _("compiled on"), __DATE__, __TIME__);                      PACKAGE_STRING, _("compiled on"), __DATE__, __TIME__);

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26