src/protocols/msn/notification.c

changeset 11992
906176cc9b22
parent 11862
5d4bc6d54688
child 13628
77a85ddf2205
equal deleted inserted replaced
11991:f524f5ab1430 11992:906176cc9b22
700 700
701 msn_user_set_state(user, state); 701 msn_user_set_state(user, state);
702 msn_user_update(user); 702 msn_user_update(user);
703 } 703 }
704 704
705 #if 0
705 static void 706 static void
706 chg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) 707 chg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd)
707 { 708 {
708 char *state = cmd->params[1]; 709 char *state = cmd->params[1];
709 int state_id = 0; 710 int state_id = 0;
725 else if (!strcmp(state, "HDN")) 726 else if (!strcmp(state, "HDN"))
726 state_id = MSN_HIDDEN; 727 state_id = MSN_HIDDEN;
727 728
728 cmdproc->session->state = state_id; 729 cmdproc->session->state = state_id;
729 } 730 }
731 #endif
730 732
731 733
732 static void 734 static void
733 not_cmd_post(MsnCmdProc *cmdproc, MsnCommand *cmd, char *payload, size_t len) 735 not_cmd_post(MsnCmdProc *cmdproc, MsnCommand *cmd, char *payload, size_t len)
734 { 736 {
1377 /* TODO: check prp, blp */ 1379 /* TODO: check prp, blp */
1378 1380
1379 cbs_table = msn_table_new(); 1381 cbs_table = msn_table_new();
1380 1382
1381 /* Synchronous */ 1383 /* Synchronous */
1382 msn_table_add_cmd(cbs_table, "CHG", "CHG", chg_cmd); 1384 msn_table_add_cmd(cbs_table, "CHG", "CHG", NULL);
1383 msn_table_add_cmd(cbs_table, "CHG", "ILN", iln_cmd); 1385 msn_table_add_cmd(cbs_table, "CHG", "ILN", iln_cmd);
1384 msn_table_add_cmd(cbs_table, "ADD", "ADD", add_cmd); 1386 msn_table_add_cmd(cbs_table, "ADD", "ADD", add_cmd);
1385 msn_table_add_cmd(cbs_table, "ADD", "ILN", iln_cmd); 1387 msn_table_add_cmd(cbs_table, "ADD", "ILN", iln_cmd);
1386 msn_table_add_cmd(cbs_table, "REM", "REM", rem_cmd); 1388 msn_table_add_cmd(cbs_table, "REM", "REM", rem_cmd);
1387 msn_table_add_cmd(cbs_table, "USR", "USR", usr_cmd); 1389 msn_table_add_cmd(cbs_table, "USR", "USR", usr_cmd);

mercurial