# HG changeset patch # User Elliott Sales de Andrade # Date 1304576507 0 # Node ID 62b11ad353eb1737c9226fac38c6fefd96cfeaf2 # Parent 313fcc5be5688fa46b4d50b94a8e1338d8706ea7 Register both spellings for the msgcolour command, for people who spell things correctly. But I don't want an extra string to translate, so I'll leave that in C locale. diff -r 313fcc5be568 -r 62b11ad353eb finch/gntconv.c --- a/finch/gntconv.c Thu May 05 03:07:35 2011 +0000 +++ b/finch/gntconv.c Thu May 05 06:21:47 2011 +0000 @@ -1458,6 +1458,14 @@ " <foreground/background>: black, red, green, blue, white, gray, darkgray, magenta, cyan, default

" "EXAMPLE:
msgcolor send cyan default"), NULL); + purple_cmd_register("msgcolour", "www", PURPLE_CMD_P_DEFAULT, + PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL, + cmd_message_color, _("msgcolor <class> <foreground> <background>: " + "Set the color for different classes of messages in the conversation window.
" + " <class>: receive, send, highlight, action, timestamp
" + " <foreground/background>: black, red, green, blue, white, gray, darkgray, magenta, cyan, default

" + "EXAMPLE:
msgcolor send cyan default"), + NULL); purple_signal_connect(purple_conversations_get_handle(), "buddy-typing", finch_conv_get_handle(), PURPLE_CALLBACK(update_buddy_typing), NULL);