Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 9247:933c7418fd03
[gaim-migrate @ 10046]
I went and made up a format for the help strings for commands.
I'm not married to this format if someone has a better suggestion.
I'll add help strings for IRC's commands (and give rid of its current
irc specific /help command, since there's no need for that anymore)
after someone suggets a better format, or no one complains about this one.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Wed, 09 Jun 2004 06:09:08 +0000 |
parents | 99abaef7ed34 |
children | 947876140943 |
comparison
equal
deleted
inserted
replaced
9246:e20af87d8721 | 9247:933c7418fd03 |
---|---|
417 help = gaim_cmd_help(conv, args[0]); | 417 help = gaim_cmd_help(conv, args[0]); |
418 | 418 |
419 if (help) { | 419 if (help) { |
420 for (l = help; l; l = l->next) | 420 for (l = help; l; l = l->next) |
421 if (l->next) | 421 if (l->next) |
422 g_string_append_printf(s, "%s\n", (char *)l->data); | 422 g_string_append_printf(s, "/%s\n", (char *)l->data); |
423 else | 423 else |
424 g_string_append_printf(s, "%s", (char *)l->data); | 424 g_string_append_printf(s, "/%s", (char *)l->data); |
425 } else { | 425 } else { |
426 g_string_append(s, _("No such command (in this context).")); | 426 g_string_append(s, _("No such command (in this context).")); |
427 } | 427 } |
428 | 428 |
429 gaim_conversation_write(conv, NULL, s->str, GAIM_MESSAGE_NO_LOG, time(NULL)); | 429 gaim_conversation_write(conv, NULL, s->str, GAIM_MESSAGE_NO_LOG, time(NULL)); |
6073 /********************************************************************** | 6073 /********************************************************************** |
6074 * Register commands | 6074 * Register commands |
6075 **********************************************************************/ | 6075 **********************************************************************/ |
6076 gaim_cmd_register("me", "S", GAIM_CMD_P_DEFAULT, | 6076 gaim_cmd_register("me", "S", GAIM_CMD_P_DEFAULT, |
6077 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, | 6077 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, |
6078 me_command_cb, _("Send an IRC style action to a buddy or chat.")); | 6078 me_command_cb, _("me <action>: Send an IRC style action to a buddy or chat.")); |
6079 gaim_cmd_register("debug", "w", GAIM_CMD_P_DEFAULT, | 6079 gaim_cmd_register("debug", "w", GAIM_CMD_P_DEFAULT, |
6080 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, | 6080 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, |
6081 debug_command_cb, _("Send various debug information to the current conversation.")); | 6081 debug_command_cb, _("debug <option>: Send various debug information to the current conversation.")); |
6082 | 6082 |
6083 gaim_cmd_register("help", "", GAIM_CMD_P_DEFAULT, | 6083 gaim_cmd_register("help", "", GAIM_CMD_P_DEFAULT, |
6084 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, | 6084 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, |
6085 help_command_cb, _("/help: List available commands.")); | 6085 help_command_cb, _("help: List available commands.")); |
6086 | 6086 |
6087 gaim_cmd_register("help", "w", GAIM_CMD_P_DEFAULT, | 6087 gaim_cmd_register("help", "w", GAIM_CMD_P_DEFAULT, |
6088 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, | 6088 GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, |
6089 help_arg_command_cb, _("/help <command>: Help on a specific command.")); | 6089 help_arg_command_cb, _("help <command>: Help on a specific command.")); |
6090 } | 6090 } |
6091 | 6091 |
6092 void | 6092 void |
6093 gaim_gtk_conversations_uninit(void) | 6093 gaim_gtk_conversations_uninit(void) |
6094 { | 6094 { |