| 21 * You should have received a copy of the GNU General Public License |
21 * You should have received a copy of the GNU General Public License |
| 22 * along with this program; if not, write to the Free Software |
22 * along with this program; if not, write to the Free Software |
| 23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 24 */ |
24 */ |
| 25 |
25 |
| 26 #include "internal.h" |
26 #include "internal.h" |
| 27 #include "purple.h" |
27 #include "debug.h" |
| |
28 #include "request.h" |
| 28 |
29 |
| 29 #include "protocol.h" |
30 #include "protocol.h" |
| 30 #include "mxit.h" |
31 #include "mxit.h" |
| 31 #include "roster.h" |
32 #include "roster.h" |
| 32 #include "actions.h" |
33 #include "actions.h" |
| 184 field = purple_request_fields_get_field( fields, "suggestable" ); |
185 field = purple_request_fields_get_field( fields, "suggestable" ); |
| 185 if ( purple_request_field_bool_get_value( field ) ) /* is suggestable -> clear not-suggestable flag */ |
186 if ( purple_request_field_bool_get_value( field ) ) /* is suggestable -> clear not-suggestable flag */ |
| 186 profile->flags &= ~CP_PROF_NOT_SUGGESTABLE; |
187 profile->flags &= ~CP_PROF_NOT_SUGGESTABLE; |
| 187 else |
188 else |
| 188 profile->flags |= CP_PROF_NOT_SUGGESTABLE; |
189 profile->flags |= CP_PROF_NOT_SUGGESTABLE; |
| 189 g_snprintf( attrib, sizeof( attrib ), "\01%s\01%i\01%i", CP_PROFILE_FLAGS, CP_PROFILE_TYPE_LONG, profile->flags); |
190 g_snprintf( attrib, sizeof( attrib ), "\01%s\01%i\01%" G_GINT64_FORMAT, CP_PROFILE_FLAGS, CP_PROFILE_TYPE_LONG, profile->flags); |
| 190 g_string_append( attributes, attrib ); |
191 g_string_append( attributes, attrib ); |
| 191 acount++; |
192 acount++; |
| 192 |
193 |
| 193 /* send the profile update to MXit */ |
194 /* send the profile update to MXit */ |
| 194 mxit_send_extprofile_update( session, NULL, acount, attributes->str ); |
195 mxit_send_extprofile_update( session, NULL, acount, attributes->str ); |