Mercurial > pidgin
comparison src/conversation.c @ 9375:49b7b30f6e4e
[gaim-migrate @ 10183]
This is the rest of making ctrl-up work for /cmds.
I forgot to hit save in my editor.
It actually worked without this part, heh.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Thu, 24 Jun 2004 05:01:50 +0000 |
parents | af707cc1e229 |
children | 1fac0336890c |
comparison
equal
deleted
inserted
replaced
9374:e4654f277514 | 9375:49b7b30f6e4e |
---|---|
154 GaimConnection *gc; | 154 GaimConnection *gc; |
155 GaimConversationUiOps *ops; | 155 GaimConversationUiOps *ops; |
156 char *displayed = NULL, *sent = NULL; | 156 char *displayed = NULL, *sent = NULL; |
157 int plugin_return; | 157 int plugin_return; |
158 int err = 0; | 158 int err = 0; |
159 GList *first; | |
160 | 159 |
161 if (strlen(message) == 0) | 160 if (strlen(message) == 0) |
162 return; | 161 return; |
163 | 162 |
164 gc = gaim_conversation_get_gc(conv); | 163 gc = gaim_conversation_get_gc(conv); |
165 | 164 |
166 g_return_if_fail(gc != NULL); | 165 g_return_if_fail(gc != NULL); |
167 | 166 |
168 type = gaim_conversation_get_type(conv); | 167 type = gaim_conversation_get_type(conv); |
169 ops = gaim_conversation_get_ui_ops(conv); | 168 ops = gaim_conversation_get_ui_ops(conv); |
170 | |
171 first = g_list_first(conv->send_history); | |
172 | |
173 if (first->data) | |
174 g_free(first->data); | |
175 | |
176 first->data = g_strdup(message); | |
177 | |
178 conv->send_history = g_list_prepend(first, NULL); | |
179 | 169 |
180 if (gc->flags & GAIM_CONNECTION_HTML) | 170 if (gc->flags & GAIM_CONNECTION_HTML) |
181 displayed = gaim_markup_linkify(message); | 171 displayed = gaim_markup_linkify(message); |
182 else | 172 else |
183 displayed = g_strdup(message); | 173 displayed = g_strdup(message); |