Mercurial > pidgin.yaz
comparison src/server.c @ 10052:eaec201b2688
[gaim-migrate @ 11013]
More rockin status stuff from Dave West!
Things are beginning to shape up quite well.
Dave, again, sorry it took me a week to get to this. Girl waits for no man.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 19 Sep 2004 21:19:55 +0000 |
parents | 32467b63f55a |
children | 60db14d54914 |
comparison
equal
deleted
inserted
replaced
10051:0810288958ad | 10052:eaec201b2688 |
---|---|
939 * - or it's disabled | 939 * - or it's disabled |
940 * - or we're not idle and the 'only auto respond if idle' pref | 940 * - or we're not idle and the 'only auto respond if idle' pref |
941 * is set | 941 * is set |
942 */ | 942 */ |
943 auto_reply_pref = gaim_prefs_get_string("/core/away/auto_reply"); | 943 auto_reply_pref = gaim_prefs_get_string("/core/away/auto_reply"); |
944 status = gaim_presence_get_active_status(presence); | 944 |
945 away_msg = gaim_value_get_string( | |
946 gaim_status_get_attr_value(status, "message")); | |
947 | |
948 if (!(gc->flags & GAIM_CONNECTION_AUTO_RESP) || | 945 if (!(gc->flags & GAIM_CONNECTION_AUTO_RESP) || |
949 away_msg == NULL || *away_msg == '\0' || | 946 gaim_presence_is_available(presence) || |
950 !strcmp(auto_reply_pref, "never") || | 947 !strcmp(auto_reply_pref, "never") || |
951 (!gaim_presence_is_idle(presence) && | 948 (!gaim_presence_is_idle(presence) && |
952 !strcmp(auto_reply_pref, "awayidle"))) { | 949 !strcmp(auto_reply_pref, "awayidle"))) { |
953 | 950 |
954 g_free(name); | 951 g_free(name); |
970 g_free(name); | 967 g_free(name); |
971 g_free(message); | 968 g_free(message); |
972 return; | 969 return; |
973 } | 970 } |
974 lar->sent = t; | 971 lar->sent = t; |
972 | |
973 status = gaim_presence_get_active_status(presence); | |
974 if (status == NULL) | |
975 return; | |
976 | |
977 away_msg = gaim_value_get_string( | |
978 gaim_status_get_attr_value(status, "message")); | |
975 | 979 |
976 /* apply default fonts and colors */ | 980 /* apply default fonts and colors */ |
977 tmpmsg = stylize(away_msg, MSG_LEN); | 981 tmpmsg = stylize(away_msg, MSG_LEN); |
978 | 982 |
979 /* Move this to oscar.c! */ | 983 /* Move this to oscar.c! */ |