Mercurial > pidgin
diff src/server.c @ 5539:de09863bd4b5
[gaim-migrate @ 5939]
Split Show URLs as Links into Show URLs as Links and Send URLs as Links,
and converted them to the new prefs system.
Also, added a function in gtkprefs.c called prefs_checkbox(), which works
with the new prefs.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 27 May 2003 20:10:21 +0000 |
parents | cce2d7868c78 |
children | 7a64114641c3 |
line wrap: on
line diff
--- a/src/server.c Tue May 27 08:09:10 2003 +0000 +++ b/src/server.c Tue May 27 20:10:21 2003 +0000 @@ -38,6 +38,7 @@ #include "sound.h" #include "pounce.h" #include "notify.h" +#include "prefs.h" void serv_login(struct gaim_account *account) { @@ -813,7 +814,9 @@ * If you can't figure this out, stop reading right now. * "We're not worthy! We're not worthy!" */ - if ((len < 0) && (convo_options & OPT_CONVO_SEND_LINKS)) { + if (len < 0 && + gaim_prefs_get_bool("/gaim/gtk/conversations/show_urls_as_links")) { + buffy = linkify_text(message); g_free(message); message = buffy; @@ -1369,7 +1372,7 @@ - if (convo_options & OPT_CONVO_SEND_LINKS) + if (gaim_prefs_get_bool("/gaim/gtk/conversations/urls_as_links")) buf = linkify_text(message); else buf = g_strdup(message);