comparison src/server.c @ 1785:f4ae086c746b

[gaim-migrate @ 1795] ha! i'm stupid. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 30 Apr 2001 21:49:07 +0000
parents 9ca22174da76
children f15d449b3167
comparison
equal deleted inserted replaced
1784:cf7806e63d0c 1785:f4ae086c746b
522 serv_send_im(gc, name, away_subs(tmpmsg, alias), 1); 522 serv_send_im(gc, name, away_subs(tmpmsg, alias), 1);
523 if (!cnv && clistqueue && (general_options & OPT_GEN_QUEUE_WHEN_AWAY)) { 523 if (!cnv && clistqueue && (general_options & OPT_GEN_QUEUE_WHEN_AWAY)) {
524 struct queued_message *qm; 524 struct queued_message *qm;
525 qm = g_new0(struct queued_message, 1); 525 qm = g_new0(struct queued_message, 1);
526 g_snprintf(qm->name, sizeof(qm->name), "%s", name); 526 g_snprintf(qm->name, sizeof(qm->name), "%s", name);
527 qm->message = g_strdup(message); 527 qm->message = g_strdup(away_subs(tmpmsg, alias));
528 qm->gc = gc; 528 qm->gc = gc;
529 qm->tm = mtime; 529 qm->tm = mtime;
530 qm->flags = WFLAG_SEND | WFLAG_AUTO; 530 qm->flags = WFLAG_SEND | WFLAG_AUTO;
531 message_queue = g_slist_append(message_queue, qm); 531 message_queue = g_slist_append(message_queue, qm);
532 } else if (cnv != NULL) 532 } else if (cnv != NULL)
779 779
780 780
781 gtk_widget_show(d); 781 gtk_widget_show(d);
782 } 782 }
783 783
784 void serv_got_joined_chat(struct gaim_connection *gc, int id, char *name) 784 struct conversation *serv_got_joined_chat(struct gaim_connection *gc, int id, char *name)
785 { 785 {
786 struct conversation *b; 786 struct conversation *b;
787 787
788 plugin_event(event_chat_join, gc, name, 0, 0); 788 plugin_event(event_chat_join, gc, name, 0, 0);
789 789
819 } 819 }
820 free(filename); 820 free(filename);
821 } 821 }
822 822
823 show_new_buddy_chat(b); 823 show_new_buddy_chat(b);
824
825 return b;
824 } 826 }
825 827
826 void serv_got_chat_left(struct gaim_connection *g, int id) 828 void serv_got_chat_left(struct gaim_connection *g, int id)
827 { 829 {
828 GSList *bcs = g->buddy_chats; 830 GSList *bcs = g->buddy_chats;