Mercurial > pidgin
diff src/server.c @ 3033:1143524a2eaf
[gaim-migrate @ 3046]
Laying the ground work for image send. Also an IRC fix.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Tue, 12 Mar 2002 17:21:46 +0000 |
| parents | 8851d33517e9 |
| children | 4f2f12bf4408 |
line wrap: on
line diff
--- a/src/server.c Tue Mar 12 02:44:22 2002 +0000 +++ b/src/server.c Tue Mar 12 17:21:46 2002 +0000 @@ -152,11 +152,11 @@ else return 0; } -int serv_send_im(struct gaim_connection *gc, char *name, char *message, int flags) +int serv_send_im(struct gaim_connection *gc, char *name, char *message, int len, int flags) { int val = -EINVAL; if (gc->prpl && gc->prpl->send_im) - val = gc->prpl->send_im(gc, name, message, flags); + val = gc->prpl->send_im(gc, name, message, len, flags); if (!(flags & IM_FLAG_AWAY)) serv_touch_idle(gc); @@ -494,7 +494,7 @@ if ((away_options & OPT_AWAY_TIK_HACK) && gc->away && strlen(gc->away) && (len < 0) && !strcmp(message, ">>>Automated Message: Getting Away Message<<<")) { char *tmpmsg = stylize(awaymessage->message, MSG_LEN); - serv_send_im(gc, name, tmpmsg, IM_FLAG_AWAY); + serv_send_im(gc, name, tmpmsg, -1, IM_FLAG_AWAY); g_free(tmpmsg); g_free(name); g_free(message); @@ -621,7 +621,7 @@ /* apply default fonts and colors */ tmpmsg = stylize(gc->away, MSG_LEN); - serv_send_im(gc, name, away_subs(tmpmsg, alias), IM_FLAG_AWAY); + serv_send_im(gc, name, away_subs(tmpmsg, alias), -1, IM_FLAG_AWAY); if (!cnv && clistqueue && (away_options & OPT_AWAY_QUEUE)) { struct queued_message *qm; qm = g_new0(struct queued_message, 1);
