Mercurial > pidgin.yaz
comparison libpurple/plugins/autoaccept.c @ 19567:b99a158ea85e
disapproval of revision 'c672802b647f1230fbd9b0edf383fb3d558cf719'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 02 Sep 2007 00:03:43 +0000 |
parents | 57d350900136 |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
19566:57d350900136 | 19567:b99a158ea85e |
---|---|
104 } | 104 } |
105 | 105 |
106 node = node->parent; | 106 node = node->parent; |
107 g_return_if_fail(PURPLE_BLIST_NODE_IS_CONTACT(node)); | 107 g_return_if_fail(PURPLE_BLIST_NODE_IS_CONTACT(node)); |
108 | 108 |
109 pref = purple_prefs_get_string(PREF_PATH); | |
109 switch (purple_blist_node_get_int(node, "autoaccept")) | 110 switch (purple_blist_node_get_int(node, "autoaccept")) |
110 { | 111 { |
111 case FT_ASK: | 112 case FT_ASK: |
112 break; | 113 break; |
113 case FT_ACCEPT: | 114 case FT_ACCEPT: |
114 pref = purple_prefs_get_string(PREF_PATH); | |
115 if (ensure_path_exists(pref)) | 115 if (ensure_path_exists(pref)) |
116 { | 116 { |
117 dirname = g_build_filename(pref, xfer->who, NULL); | 117 dirname = g_build_filename(pref, xfer->who, NULL); |
118 | 118 |
119 if (!ensure_path_exists(dirname)) | 119 if (!ensure_path_exists(dirname)) |