comparison src/protocols/msn/msn.c @ 3466:7a3f16a375a5

[gaim-migrate @ 3516] some patches from some people. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 29 Aug 2002 01:47:15 +0000
parents b48065e52337
children 4b204c262376
comparison
equal deleted inserted replaced
3465:ec437d73b2ee 3466:7a3f16a375a5
1890 debug_printf("\n"); 1890 debug_printf("\n");
1891 serv_got_chat_in(gc, id, gc->username, 0, message, time(NULL)); 1891 serv_got_chat_in(gc, id, gc->username, 0, message, time(NULL));
1892 return 0; 1892 return 0;
1893 } 1893 }
1894 1894
1895 static void msn_chat_invite(struct gaim_connection *gc, int id, char *msg, char *who) 1895 static void msn_chat_invite(struct gaim_connection *gc, int id, const char *msg, const char *who)
1896 { 1896 {
1897 struct msn_switchboard *ms = msn_find_switch_by_id(gc, id); 1897 struct msn_switchboard *ms = msn_find_switch_by_id(gc, id);
1898 char buf[MSN_BUF_LEN]; 1898 char buf[MSN_BUF_LEN];
1899 1899
1900 if (!ms) 1900 if (!ms)
2060 m = g_list_append(m, pbm); 2060 m = g_list_append(m, pbm);
2061 2061
2062 return m; 2062 return m;
2063 } 2063 }
2064 2064
2065 static void msn_add_buddy(struct gaim_connection *gc, char *name) 2065 static void msn_add_buddy(struct gaim_connection *gc, const char *name)
2066 { 2066 {
2067 struct msn_data *md = gc->proto_data; 2067 struct msn_data *md = gc->proto_data;
2068 char *who = msn_normalize(name); 2068 char *who = msn_normalize(name);
2069 char buf[MSN_BUF_LEN]; 2069 char buf[MSN_BUF_LEN];
2070 GSList *l = md->fl; 2070 GSList *l = md->fl;
2112 struct gaim_connection *gc = data; 2112 struct gaim_connection *gc = data;
2113 struct msn_data *md = gc->proto_data; 2113 struct msn_data *md = gc->proto_data;
2114 char buf[MSN_BUF_LEN]; 2114 char buf[MSN_BUF_LEN];
2115 char *alias; 2115 char *alias;
2116 2116
2117 if (!entry || *entry == NULL) 2117 if (!entry || *entry == '\0')
2118 alias = g_strdup(""); 2118 alias = g_strdup("");
2119 else 2119 else
2120 alias = str_to_utf8(entry); 2120 alias = str_to_utf8(entry);
2121 2121
2122 if (strlen(alias) >= BUDDY_ALIAS_MAXLEN) { 2122 if (strlen(alias) >= BUDDY_ALIAS_MAXLEN) {