comparison src/core.c @ 5563:9eb5b13fd412

[gaim-migrate @ 5965] Just a taste of what's coming. Standard "This won't compile" thing. Plugin authors, you're going to hate me, but that's okay, because I have friends too! It's really late. My brain resembles that of fish swimming in jello pudding with neon lights flying around chanting musicals. I'm not on drugs. I'm just that tired. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 30 May 2003 09:38:29 +0000
parents a2f26666de42
children 86456ec3ca25
comparison
equal deleted inserted replaced
5562:3c8d34574601 5563:9eb5b13fd412
217 } 217 }
218 218
219 static void user_handler(struct UI *ui, guchar subtype, guchar *data) 219 static void user_handler(struct UI *ui, guchar subtype, guchar *data)
220 { 220 {
221 guint id; 221 guint id;
222 struct gaim_account *account; 222 GaimAccount *account;
223 223
224 switch (subtype) { 224 switch (subtype) {
225 /* 225 /*
226 case CUI_USER_LIST: 226 case CUI_USER_LIST:
227 break; 227 break;
256 case CUI_MESSAGE_SEND: 256 case CUI_MESSAGE_SEND:
257 if (!data) 257 if (!data)
258 return; 258 return;
259 { 259 {
260 guint id; 260 guint id;
261 struct gaim_connection *gc; 261 GaimConnection *gc;
262 guint len; 262 guint len;
263 char *who, *msg; 263 char *who, *msg;
264 gint flags; 264 gint flags;
265 int pos = 0; 265 int pos = 0;
266 266
267 memcpy(&id, data + pos, sizeof(id)); 267 memcpy(&id, data + pos, sizeof(id));
268 pos += sizeof(id); 268 pos += sizeof(id);
269 gc = g_slist_nth_data(connections, id); 269 gc = g_list_nth_data(gaim_connections_get_all(), id);
270 if (!gc) 270 if (!gc)
271 return; 271 return;
272 272
273 memcpy(&len, data + pos, sizeof(len)); 273 memcpy(&len, data + pos, sizeof(len));
274 pos += sizeof(len); 274 pos += sizeof(len);