Mercurial > pidgin
comparison src/server.c @ 3985:f118d61fb89a
[gaim-migrate @ 4176]
smaller close button for tabs and aliases are now used in the away message queue, both thanks to deryni
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Tue, 19 Nov 2002 17:54:56 +0000 |
| parents | 15b0d5b2de4d |
| children | 89b56ab2b692 |
comparison
equal
deleted
inserted
replaced
| 3984:e0f868943dee | 3985:f118d61fb89a |
|---|---|
| 641 if (!cnv && clistqueue && (away_options & OPT_AWAY_QUEUE)) { | 641 if (!cnv && clistqueue && (away_options & OPT_AWAY_QUEUE)) { |
| 642 /* alright, so we're going to queue it. neat, eh? :) so first we create | 642 /* alright, so we're going to queue it. neat, eh? :) so first we create |
| 643 * something to store the message, and add it to our queue. Then we update | 643 * something to store the message, and add it to our queue. Then we update |
| 644 * the away dialog to indicate that we've queued something. */ | 644 * the away dialog to indicate that we've queued something. */ |
| 645 struct queued_message *qm; | 645 struct queued_message *qm; |
| 646 struct buddy *b; | |
| 646 | 647 |
| 647 qm = g_new0(struct queued_message, 1); | 648 qm = g_new0(struct queued_message, 1); |
| 648 g_snprintf(qm->name, sizeof(qm->name), "%s", name); | 649 if (OPT_IM_ALIAS_TAB) { |
| 650 b = find_buddy(gc, name); | |
| 651 g_snprintf(qm->name, sizeof(qm->name), "%s", b ? b->show : name); | |
| 652 } | |
| 653 else | |
| 654 g_snprintf(qm->name, sizeof(qm->name), "%s", name); | |
| 649 qm->message = g_memdup(message, len == -1 ? strlen(message) + 1 : len); | 655 qm->message = g_memdup(message, len == -1 ? strlen(message) + 1 : len); |
| 650 qm->gc = gc; | 656 qm->gc = gc; |
| 651 qm->tm = mtime; | 657 qm->tm = mtime; |
| 652 qm->flags = WFLAG_RECV | away; | 658 qm->flags = WFLAG_RECV | away; |
| 653 qm->len = len; | 659 qm->len = len; |
