comparison libpurple/protocols/msn/notification.c @ 32819:2c6510167895 default tip

propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24) to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 02 Jun 2012 02:30:49 +0000
parents f01d6c9f3492
children
comparison
equal deleted inserted replaced
32818:01ff09d4a463 32819:2c6510167895
1201 id = xmlnode_get_attrib(msg, "id"); 1201 id = xmlnode_get_attrib(msg, "id");
1202 1202
1203 if (id && strcmp(id, "1")) { 1203 if (id && strcmp(id, "1")) {
1204 PurpleConversation *conv 1204 PurpleConversation *conv
1205 = purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY, 1205 = purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY,
1206 who, gc->account); 1206 who, purple_connection_get_account(gc));
1207 if (conv != NULL) { 1207 if (conv != NULL) {
1208 const char *error; 1208 const char *error;
1209 if (!strcmp(id, "407")) 1209 if (!strcmp(id, "407"))
1210 error = _("Mobile message was not sent because it was too long."); 1210 error = _("Mobile message was not sent because it was too long.");
1211 else 1211 else
1400 1400
1401 gulong tmp_timestamp; 1401 gulong tmp_timestamp;
1402 1402
1403 session = cmdproc->session; 1403 session = cmdproc->session;
1404 account = session->account; 1404 account = session->account;
1405 gc = account->gc; 1405 gc = purple_account_get_connection(account);
1406 1406
1407 rru = cmd->params[1]; 1407 rru = cmd->params[1];
1408 url = cmd->params[2]; 1408 url = cmd->params[2];
1409 1409
1410 session->passport_info.mail_timestamp = time(NULL); 1410 session->passport_info.mail_timestamp = time(NULL);
2039 PurpleConnection *gc; 2039 PurpleConnection *gc;
2040 GHashTable *table; 2040 GHashTable *table;
2041 const char *unread; 2041 const char *unread;
2042 2042
2043 session = cmdproc->session; 2043 session = cmdproc->session;
2044 gc = session->account->gc; 2044 gc = purple_account_get_connection(session->account);
2045 2045
2046 if (strcmp(msg->remote_user, "Hotmail")) 2046 if (strcmp(msg->remote_user, "Hotmail"))
2047 /* This isn't an official message. */ 2047 /* This isn't an official message. */
2048 return; 2048 return;
2049 2049
2090 PurpleConnection *gc; 2090 PurpleConnection *gc;
2091 GHashTable *table; 2091 GHashTable *table;
2092 const char *mdata, *unread; 2092 const char *mdata, *unread;
2093 2093
2094 session = cmdproc->session; 2094 session = cmdproc->session;
2095 gc = session->account->gc; 2095 gc = purple_account_get_connection(session->account);
2096 2096
2097 if (strcmp(msg->remote_user, "Hotmail")) 2097 if (strcmp(msg->remote_user, "Hotmail"))
2098 /* This isn't an official message. */ 2098 /* This isn't an official message. */
2099 return; 2099 return;
2100 2100
2162 PurpleConnection *gc; 2162 PurpleConnection *gc;
2163 GHashTable *table; 2163 GHashTable *table;
2164 char *from, *subject, *tmp; 2164 char *from, *subject, *tmp;
2165 2165
2166 session = cmdproc->session; 2166 session = cmdproc->session;
2167 gc = session->account->gc; 2167 gc = purple_account_get_connection(session->account);
2168 2168
2169 if (strcmp(msg->remote_user, "Hotmail")) 2169 if (strcmp(msg->remote_user, "Hotmail"))
2170 /* This isn't an official message. */ 2170 /* This isn't an official message. */
2171 return; 2171 return;
2172 2172
2247 default: 2247 default:
2248 break; 2248 break;
2249 } 2249 }
2250 2250
2251 if (*buf != '\0') 2251 if (*buf != '\0')
2252 purple_notify_info(cmdproc->session->account->gc, NULL, buf, NULL); 2252 purple_notify_info(purple_account_get_connection(cmdproc->session->account), NULL, buf, NULL);
2253 } 2253 }
2254 2254
2255 g_hash_table_destroy(table); 2255 g_hash_table_destroy(table);
2256 } 2256 }
2257 2257