comparison libpurple/protocols/msn/sync.c @ 19843:60bc06498746

Committing khc's msnp14 changes from Trac Ticket #148. --rlaager committer: Richard Laager <rlaager@wiktel.com>
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 15 Apr 2007 04:12:27 +0000
parents 32c366eeeb99
children 6f986caeab59
comparison
equal deleted inserted replaced
16121:6167ee79ecd0 19843:60bc06498746
33 PurpleConnection *gc = cmdproc->session->account->gc; 33 PurpleConnection *gc = cmdproc->session->account->gc;
34 const char *list_name; 34 const char *list_name;
35 35
36 list_name = cmd->params[0]; 36 list_name = cmd->params[0];
37 37
38 if (!g_ascii_strcasecmp(list_name, "AL")) 38 if (!g_ascii_strcasecmp(list_name, "AL")){
39 {
40 /* 39 /*
41 * If the current setting is AL, messages from users who 40 * If the current setting is AL, messages from users who
42 * are not in BL will be delivered. 41 * are not in BL will be delivered.
43 * 42 *
44 * In other words, deny some. 43 * In other words, deny some.
45 */ 44 */
46 gc->account->perm_deny = PURPLE_PRIVACY_DENY_USERS; 45 gc->account->perm_deny = PURPLE_PRIVACY_DENY_USERS;
47 } 46 }else{
48 else
49 {
50 /* If the current setting is BL, only messages from people 47 /* If the current setting is BL, only messages from people
51 * who are in the AL will be delivered. 48 * who are in the AL will be delivered.
52 * 49 *
53 * In other words, permit some. 50 * In other words, permit some.
54 */ 51 */
87 84
88 static void 85 static void
89 lsg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) 86 lsg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd)
90 { 87 {
91 MsnSession *session = cmdproc->session; 88 MsnSession *session = cmdproc->session;
92 const char *name; 89 const char *name, *group_id;
93 int group_id; 90
94 91 group_id = cmd->params[0];
95 group_id = atoi(cmd->params[0]);
96 name = purple_url_decode(cmd->params[1]); 92 name = purple_url_decode(cmd->params[1]);
97 93
98 msn_group_new(session->userlist, group_id, name); 94 msn_group_new(session->userlist, group_id, name);
99 95
100 /* HACK */ 96 /* HACK */