pidgin/gtkconv.c

changeset 32226
047f1f9df60d
parent 32190
7881925d0929
child 32255
3d9a47e21dce
equal deleted inserted replaced
32225:a8a4f59f9367 32226:047f1f9df60d
354 } else { 354 } else {
355 str = g_string_append(str, "(none)"); 355 str = g_string_append(str, "(none)");
356 } 356 }
357 357
358 tmp = g_string_free(str, FALSE); 358 tmp = g_string_free(str, FALSE);
359 } else if (!g_ascii_strcasecmp(args[0], "unsafe")) {
360 if (purple_debug_is_unsafe()) {
361 purple_debug_set_unsafe(FALSE);
362 purple_conversation_write(conv, NULL, _("Unsafe debugging is now disabled."),
363 PURPLE_MESSAGE_NO_LOG|PURPLE_MESSAGE_SYSTEM, time(NULL));
364 } else {
365 purple_debug_set_unsafe(TRUE);
366 purple_conversation_write(conv, NULL, _("Unsafe debugging is now enabled."),
367 PURPLE_MESSAGE_NO_LOG|PURPLE_MESSAGE_SYSTEM, time(NULL));
368 }
369
370 return PURPLE_CMD_RET_OK;
371 } else if (!g_ascii_strcasecmp(args[0], "verbose")) {
372 if (purple_debug_is_verbose()) {
373 purple_debug_set_verbose(FALSE);
374 purple_conversation_write(conv, NULL, _("Verbose debugging is now disabled."),
375 PURPLE_MESSAGE_NO_LOG|PURPLE_MESSAGE_SYSTEM, time(NULL));
376 } else {
377 purple_debug_set_verbose(TRUE);
378 purple_conversation_write(conv, NULL, _("Verbose debugging is now enabled."),
379 PURPLE_MESSAGE_NO_LOG|PURPLE_MESSAGE_SYSTEM, time(NULL));
380 }
381
382 return PURPLE_CMD_RET_OK;
359 } else { 383 } else {
360 purple_conversation_write(conv, NULL, _("Supported debug options are: plugins version"), 384 purple_conversation_write(conv, NULL, _("Supported debug options are: plugins version unsafe verbose"),
361 PURPLE_MESSAGE_NO_LOG|PURPLE_MESSAGE_ERROR, time(NULL)); 385 PURPLE_MESSAGE_NO_LOG|PURPLE_MESSAGE_ERROR, time(NULL));
362 return PURPLE_CMD_RET_OK; 386 return PURPLE_CMD_RET_OK;
363 } 387 }
364 388
365 markup = g_markup_escape_text(tmp, -1); 389 markup = g_markup_escape_text(tmp, -1);

mercurial