Mercurial > pidgin
comparison src/server.c @ 1769:68eddf56f419
[gaim-migrate @ 1779]
notes on future UI stuff for PRPLs. also cleaning up rob's mess in server.c.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sat, 28 Apr 2001 08:11:42 +0000 |
| parents | 9aae465eeb6e |
| children | 213607e89598 |
comparison
equal
deleted
inserted
replaced
| 1768:9aae465eeb6e | 1769:68eddf56f419 |
|---|---|
| 365 } | 365 } |
| 366 } else { | 366 } else { |
| 367 return; | 367 return; |
| 368 } | 368 } |
| 369 if (cnv != NULL) { | 369 if (cnv != NULL) { |
| 370 | 370 struct queued_message *qm; |
| 371 if (cnv->makesound && (sound_options & OPT_SOUND_RECV)) | 371 if (cnv->makesound && (sound_options & OPT_SOUND_RECV)) |
| 372 play_sound(RECEIVE); | 372 play_sound(RECEIVE); |
| 373 | 373 /* |
| 374 if (gc->away) | 374 qm = (struct queued_message *)g_new0(struct queued_message, 1); |
| 375 { | 375 snprintf(qm->name, sizeof(qm->name), "%s", name); |
| 376 struct queued_message *qm; | 376 qm->message = strdup(message); |
| 377 | 377 qm->gc = gc; |
| 378 qm = (struct queued_message *)g_new0(struct queued_message, 1); | 378 qm->tm = mtime; |
| 379 snprintf(qm->name, sizeof(qm->name), "%s", name); | 379 |
| 380 qm->message = strdup(message); | 380 message_queue = g_slist_append(message_queue, qm); |
| 381 qm->gc = gc; | 381 */ |
| 382 qm->tm = mtime; | |
| 383 | |
| 384 message_queue = g_slist_append(message_queue, qm); | |
| 385 | |
| 386 printf("A message has been queued.\n"); | |
| 387 } | |
| 388 | |
| 389 write_to_conv(cnv, message, away | WFLAG_RECV, NULL, mtime); | 382 write_to_conv(cnv, message, away | WFLAG_RECV, NULL, mtime); |
| 390 | |
| 391 } | 383 } |
| 392 | 384 |
| 393 } else { | 385 } else { |
| 394 if (cnv == NULL) { | 386 if (cnv == NULL) { |
| 395 new_conv = 1; | 387 new_conv = 1; |
| 403 play_sound(FIRST_RECEIVE); | 395 play_sound(FIRST_RECEIVE); |
| 404 } else { | 396 } else { |
| 405 if (cnv->makesound && (sound_options & OPT_SOUND_RECV)) | 397 if (cnv->makesound && (sound_options & OPT_SOUND_RECV)) |
| 406 play_sound(RECEIVE); | 398 play_sound(RECEIVE); |
| 407 } | 399 } |
| 408 | |
| 409 if (gc->away) | |
| 410 { | |
| 411 struct queued_message *qm; | |
| 412 | |
| 413 qm = (struct queued_message *)g_new0(struct queued_message, 1); | |
| 414 snprintf(qm->name, sizeof(qm->name), "%s", name); | |
| 415 qm->message = strdup(message); | |
| 416 qm->gc = gc; | |
| 417 qm->tm = mtime; | |
| 418 | |
| 419 message_queue = g_slist_append(message_queue, qm); | |
| 420 | |
| 421 printf("A message has been queued.\n"); | |
| 422 } | |
| 423 | |
| 424 write_to_conv(cnv, message, away | WFLAG_RECV, NULL, mtime); | 400 write_to_conv(cnv, message, away | WFLAG_RECV, NULL, mtime); |
| 425 } | 401 } |
| 426 | 402 |
| 427 | 403 |
| 428 | 404 |
