comparison src/protocols/irc/msgs.c @ 11026:a659e6bac294

[gaim-migrate @ 12901] Don't pass NULL to sprintf. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 23 Jun 2005 15:44:16 +0000
parents c94f40ffcafb
children 17142948653e
comparison
equal deleted inserted replaced
11025:8d2007d738d5 11026:a659e6bac294
361 } 361 }
362 362
363 names = cur = g_string_free(irc->names, FALSE); 363 names = cur = g_string_free(irc->names, FALSE);
364 irc->names = NULL; 364 irc->names = NULL;
365 if (irc->nameconv) { 365 if (irc->nameconv) {
366 msg = g_strdup_printf(_("Users on %s: %s"), args[1], names); 366 msg = g_strdup_printf(_("Users on %s: %s"), args[1], names ? names : "");
367 if (gaim_conversation_get_type(convo) == GAIM_CONV_CHAT) 367 if (gaim_conversation_get_type(convo) == GAIM_CONV_CHAT)
368 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", msg, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); 368 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", msg, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL));
369 else 369 else
370 gaim_conv_im_write(GAIM_CONV_IM(convo), "", msg, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); 370 gaim_conv_im_write(GAIM_CONV_IM(convo), "", msg, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL));
371 g_free(msg); 371 g_free(msg);