# HG changeset patch # User Eric Warmenhoven # Date 985427237 0 # Node ID d7e380618fd5ede077a6a097cdcfbfca9501a353 # Parent b29f70d97062db31ad9e0ca225699aefb6f75bce [gaim-migrate @ 1653] linkify in chat. committer: Tailor Script diff -r b29f70d97062 -r d7e380618fd5 src/oscar.c --- 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; } diff -r b29f70d97062 -r d7e380618fd5 src/server.c --- 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