Mercurial > pidgin.yaz
diff src/server.c @ 2231:8c4ff1a368bd
[gaim-migrate @ 2241]
blue:~/gaim/app/src/protocols $ ./gtk
icq: 0
irc: 0
jabber: 52
msn: 0
napster: 0
oscar: 7
toc: 17
yahoo: 0
zephyr: 1
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 07 Sep 2001 08:09:22 +0000 |
parents | cff4fbe01c7b |
children | 0b5c3338fa3d |
line wrap: on
line diff
--- a/src/server.c Fri Sep 07 07:30:28 2001 +0000 +++ b/src/server.c Fri Sep 07 08:09:22 2001 +0000 @@ -120,13 +120,13 @@ -int serv_send_im(struct gaim_connection *gc, char *name, char *message, int away) +int serv_send_im(struct gaim_connection *gc, char *name, char *message, int flags) { int val = -EINVAL; if (gc->prpl && gc->prpl->send_im) - val = (*gc->prpl->send_im)(gc, name, message, away); + val = (*gc->prpl->send_im)(gc, name, message, flags); - if (!away) + if (!(flags & IM_FLAG_AWAY)) serv_touch_idle(gc); return val; @@ -428,7 +428,7 @@ if ((general_options & OPT_GEN_TIK_HACK) && gc->away && strlen(gc->away) && !strcmp(message, ">>>Automated Message: Getting Away Message<<<")) { char *tmpmsg = stylize(awaymessage->message, MSG_LEN); - serv_send_im(gc, name, tmpmsg, 1); + serv_send_im(gc, name, tmpmsg, IM_FLAG_AWAY); g_free(tmpmsg); g_free(name); g_free(message); @@ -549,7 +549,7 @@ /* apply default fonts and colors */ tmpmsg = stylize(gc->away, MSG_LEN); - serv_send_im(gc, name, away_subs(tmpmsg, alias), 1); + serv_send_im(gc, name, away_subs(tmpmsg, alias), IM_FLAG_AWAY); if (!cnv && clistqueue && (general_options & OPT_GEN_QUEUE_WHEN_AWAY)) { struct queued_message *qm; qm = g_new0(struct queued_message, 1);