- Timestamp:
- 2015-05-13T07:43:24Z (10 years ago)
- Branches:
- master
- Children:
- 99fe030
- Parents:
- 2730c79
- Location:
- protocols/msn
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r2730c79 ra733669 338 338 339 339 g_tree_remove(md->domaintree, bu->handle); 340 }341 342 GList *msn_buddy_action_list(bee_user_t *bu)343 {344 static GList *ret = NULL;345 346 if (ret == NULL) {347 static const struct buddy_action ba[2] = {348 { "NUDGE", "Draw attention" },349 };350 351 ret = g_list_prepend(ret, (void *) ba + 0);352 }353 354 return ret;355 }356 357 void *msn_buddy_action(struct bee_user *bu, const char *action, char * const args[], void *data)358 {359 if (g_strcasecmp(action, "NUDGE") == 0) {360 msn_buddy_msg(bu->ic, bu->handle, NUDGE_MESSAGE, 0);361 }362 363 return NULL;364 340 } 365 341 … … 392 368 ret->buddy_data_add = msn_buddy_data_add; 393 369 ret->buddy_data_free = msn_buddy_data_free; 394 ret->buddy_action_list = msn_buddy_action_list;395 ret->buddy_action = msn_buddy_action;396 370 397 371 register_protocol(ret); -
protocols/msn/msn.h
r2730c79 ra733669 30 30 */ 31 31 #define TYPING_NOTIFICATION_MESSAGE "\r\r\rBEWARE, ME R TYPINK MESSAGE!!!!\r\r\r" 32 #define NUDGE_MESSAGE "\r\r\rSHAKE THAT THING\r\r\r"33 32 #define GROUPCHAT_SWITCHBOARD_MESSAGE "\r\r\rME WANT TALK TO MANY PEOPLE\r\r\r" 34 33 … … 107 106 "TypingUser: %s\r\n" \ 108 107 "\r\n\r\n" 109 110 #define MSN_NUDGE_HEADERS "MIME-Version: 1.0\r\n" \111 "Content-Type: text/x-msnmsgr-datacast\r\n" \112 "\r\n" \113 "ID: 1\r\n" \114 "\r\n"115 108 116 109 #define PROFILE_URL "http://members.msn.com/"
Note: See TracChangeset
for help on using the changeset viewer.