comparison libpurple/protocols/msn/notification.c @ 32827:4a34689eeb33 default tip

merged from im.pidgin.pidgin
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 19 Nov 2011 14:42:54 +0900
parents 2ec94166be43
children
comparison
equal deleted inserted replaced
32692:0f94ec89f0bc 32827:4a34689eeb33
1191 id = xmlnode_get_attrib(msg, "id"); 1191 id = xmlnode_get_attrib(msg, "id");
1192 1192
1193 if (id && strcmp(id, "1")) { 1193 if (id && strcmp(id, "1")) {
1194 PurpleConversation *conv 1194 PurpleConversation *conv
1195 = purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY, 1195 = purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY,
1196 who, gc->account); 1196 who, purple_connection_get_account(gc));
1197 if (conv != NULL) { 1197 if (conv != NULL) {
1198 const char *error; 1198 const char *error;
1199 if (!strcmp(id, "407")) 1199 if (!strcmp(id, "407"))
1200 error = _("Mobile message was not sent because it was too long."); 1200 error = _("Mobile message was not sent because it was too long.");
1201 else 1201 else
1388 1388
1389 gulong tmp_timestamp; 1389 gulong tmp_timestamp;
1390 1390
1391 session = cmdproc->session; 1391 session = cmdproc->session;
1392 account = session->account; 1392 account = session->account;
1393 gc = account->gc; 1393 gc = purple_account_get_connection(account);
1394 1394
1395 rru = cmd->params[1]; 1395 rru = cmd->params[1];
1396 url = cmd->params[2]; 1396 url = cmd->params[2];
1397 1397
1398 session->passport_info.mail_timestamp = time(NULL); 1398 session->passport_info.mail_timestamp = time(NULL);
2009 PurpleConnection *gc; 2009 PurpleConnection *gc;
2010 GHashTable *table; 2010 GHashTable *table;
2011 const char *unread; 2011 const char *unread;
2012 2012
2013 session = cmdproc->session; 2013 session = cmdproc->session;
2014 gc = session->account->gc; 2014 gc = purple_account_get_connection(session->account);
2015 2015
2016 if (strcmp(msg->remote_user, "Hotmail")) 2016 if (strcmp(msg->remote_user, "Hotmail"))
2017 /* This isn't an official message. */ 2017 /* This isn't an official message. */
2018 return; 2018 return;
2019 2019
2060 PurpleConnection *gc; 2060 PurpleConnection *gc;
2061 GHashTable *table; 2061 GHashTable *table;
2062 const char *mdata, *unread; 2062 const char *mdata, *unread;
2063 2063
2064 session = cmdproc->session; 2064 session = cmdproc->session;
2065 gc = session->account->gc; 2065 gc = purple_account_get_connection(session->account);
2066 2066
2067 if (strcmp(msg->remote_user, "Hotmail")) 2067 if (strcmp(msg->remote_user, "Hotmail"))
2068 /* This isn't an official message. */ 2068 /* This isn't an official message. */
2069 return; 2069 return;
2070 2070
2132 PurpleConnection *gc; 2132 PurpleConnection *gc;
2133 GHashTable *table; 2133 GHashTable *table;
2134 char *from, *subject, *tmp; 2134 char *from, *subject, *tmp;
2135 2135
2136 session = cmdproc->session; 2136 session = cmdproc->session;
2137 gc = session->account->gc; 2137 gc = purple_account_get_connection(session->account);
2138 2138
2139 if (strcmp(msg->remote_user, "Hotmail")) 2139 if (strcmp(msg->remote_user, "Hotmail"))
2140 /* This isn't an official message. */ 2140 /* This isn't an official message. */
2141 return; 2141 return;
2142 2142
2217 default: 2217 default:
2218 break; 2218 break;
2219 } 2219 }
2220 2220
2221 if (*buf != '\0') 2221 if (*buf != '\0')
2222 purple_notify_info(cmdproc->session->account->gc, NULL, buf, NULL); 2222 purple_notify_info(purple_account_get_connection(cmdproc->session->account), NULL, buf, NULL);
2223 } 2223 }
2224 2224
2225 g_hash_table_destroy(table); 2225 g_hash_table_destroy(table);
2226 } 2226 }
2227 2227