| 255 purple_group_get_name(orig), |
255 purple_group_get_name(orig), |
| 256 purple_group_get_name(dest)); |
256 purple_group_get_name(dest)); |
| 257 } |
257 } |
| 258 } |
258 } |
| 259 |
259 |
| 260 void purple_serv_add_permit(PurpleConnection *gc, const char *name) |
|
| 261 { |
|
| 262 if (gc) { |
|
| 263 PurpleProtocol *protocol = purple_connection_get_protocol(gc); |
|
| 264 PurpleProtocolPrivacy *privacy = PURPLE_PROTOCOL_PRIVACY(protocol); |
|
| 265 |
|
| 266 purple_protocol_privacy_add_permit(privacy, gc, name); |
|
| 267 } |
|
| 268 } |
|
| 269 |
|
| 270 void purple_serv_add_deny(PurpleConnection *gc, const char *name) |
|
| 271 { |
|
| 272 if (gc) { |
|
| 273 PurpleProtocol *protocol = purple_connection_get_protocol(gc); |
|
| 274 PurpleProtocolPrivacy *privacy = PURPLE_PROTOCOL_PRIVACY(protocol); |
|
| 275 |
|
| 276 purple_protocol_privacy_add_deny(privacy, gc, name); |
|
| 277 } |
|
| 278 } |
|
| 279 |
|
| 280 void purple_serv_remove_permit(PurpleConnection *gc, const char *name) |
|
| 281 { |
|
| 282 if (gc) { |
|
| 283 PurpleProtocol *protocol = purple_connection_get_protocol(gc); |
|
| 284 PurpleProtocolPrivacy *privacy = PURPLE_PROTOCOL_PRIVACY(protocol); |
|
| 285 |
|
| 286 purple_protocol_privacy_remove_permit(privacy, gc, name); |
|
| 287 } |
|
| 288 } |
|
| 289 |
|
| 290 void purple_serv_remove_deny(PurpleConnection *gc, const char *name) |
|
| 291 { |
|
| 292 if (gc) { |
|
| 293 PurpleProtocol *protocol = purple_connection_get_protocol(gc); |
|
| 294 PurpleProtocolPrivacy *privacy = PURPLE_PROTOCOL_PRIVACY(protocol); |
|
| 295 |
|
| 296 purple_protocol_privacy_remove_deny(privacy, gc, name); |
|
| 297 } |
|
| 298 } |
|
| 299 |
|
| 300 void |
|
| 301 purple_serv_set_permit_deny(PurpleConnection *gc) { |
|
| 302 if(gc) { |
|
| 303 PurpleProtocol *protocol = purple_connection_get_protocol(gc); |
|
| 304 |
|
| 305 if(PURPLE_IS_PROTOCOL_PRIVACY(protocol)) { |
|
| 306 PurpleProtocolPrivacy *privacy = PURPLE_PROTOCOL_PRIVACY(protocol); |
|
| 307 |
|
| 308 /* |
|
| 309 * this is called when either you import a buddy list, and make lots |
|
| 310 * of changes that way, or when the user toggles the permit/deny mode |
|
| 311 * in the prefs. In either case you should probably be resetting and |
|
| 312 * resending the permit/deny info when you get this. |
|
| 313 */ |
|
| 314 purple_protocol_privacy_set_permit_deny(privacy, gc); |
|
| 315 } |
|
| 316 } |
|
| 317 } |
|
| 318 |
|
| 319 void purple_serv_join_chat(PurpleConnection *gc, GHashTable *data) |
260 void purple_serv_join_chat(PurpleConnection *gc, GHashTable *data) |
| 320 { |
261 { |
| 321 PurpleProtocol *protocol; |
262 PurpleProtocol *protocol; |
| 322 |
263 |
| 323 if (gc) { |
264 if (gc) { |