Mercurial > pidgin
comparison libpurple/protocols/msn/sync.c @ 20399:6f986caeab59
merge of 'b4911943cba6f29cf0694dfd563cac17612236dc'
and 'c28931a50bfa21e0be81777bcd91fdeab9116d77'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 15 Apr 2007 04:29:56 +0000 |
parents | 60bc06498746 4a099e4d0d09 |
children |
comparison
equal
deleted
inserted
replaced
19843:60bc06498746 | 20399:6f986caeab59 |
---|---|
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 { | |
39 /* | 40 /* |
40 * If the current setting is AL, messages from users who | 41 * If the current setting is AL, messages from users who |
41 * are not in BL will be delivered. | 42 * are not in BL will be delivered. |
42 * | 43 * |
43 * In other words, deny some. | 44 * In other words, deny some. |
44 */ | 45 */ |
45 gc->account->perm_deny = PURPLE_PRIVACY_DENY_USERS; | 46 gc->account->perm_deny = PURPLE_PRIVACY_DENY_USERS; |
46 }else{ | 47 } |
48 else | |
49 { | |
47 /* If the current setting is BL, only messages from people | 50 /* If the current setting is BL, only messages from people |
48 * who are in the AL will be delivered. | 51 * who are in the AL will be delivered. |
49 * | 52 * |
50 * In other words, permit some. | 53 * In other words, permit some. |
51 */ | 54 */ |
84 | 87 |
85 static void | 88 static void |
86 lsg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 89 lsg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
87 { | 90 { |
88 MsnSession *session = cmdproc->session; | 91 MsnSession *session = cmdproc->session; |
89 const char *name, *group_id; | 92 const char *name; |
93 const char *group_id; | |
90 | 94 |
91 group_id = cmd->params[0]; | 95 group_id = cmd->params[0]; |
92 name = purple_url_decode(cmd->params[1]); | 96 name = purple_url_decode(cmd->params[1]); |
93 | 97 |
94 msn_group_new(session->userlist, group_id, name); | 98 msn_group_new(session->userlist, group_id, name); |