Mercurial > pidgin.yaz
changeset 1643:d7e380618fd5
[gaim-migrate @ 1653]
linkify in chat.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 24 Mar 2001 09:47:17 +0000 |
parents | b29f70d97062 |
children | fb1741bc3bd0 |
files | src/oscar.c src/server.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/oscar.c Sat Mar 24 06:45:48 2001 +0000 +++ b/src/oscar.c Sat Mar 24 09:47:17 2001 +0000 @@ -1579,6 +1579,7 @@ struct aim_userinfo_s *info; char *msg; struct gaim_connection *gc = sess->aux_data; + char *tmp; GSList *bcs = gc->buddy_chats; struct conversation *b = NULL; @@ -1597,7 +1598,10 @@ if (!b) return 0; - serv_got_chat_in(gc, b->id, info->sn, 0, msg); + tmp = g_malloc(BUF_LONG); + g_snprintf(tmp, BUF_LONG, "%s", msg); + serv_got_chat_in(gc, b->id, info->sn, 0, tmp); + g_free(tmp); return 1; }
--- a/src/server.c Sat Mar 24 06:45:48 2001 +0000 +++ b/src/server.c Sat Mar 24 09:47:17 2001 +0000 @@ -728,6 +728,10 @@ if (plugin_event(event_chat_recv, g, b->name, who, message)) return; + if (general_options & OPT_GEN_SEND_LINKS) { + linkify_text(message); + } + if (whisper) w = WFLAG_WHISPER; else