comparison src/util.c @ 5676:dae79aefac8d

[gaim-migrate @ 6094] I've been meaning to do this for a LONG time. The conversation API now follows the naming convention of the rest of the new APIs. I'll get some g_return_*_if_fail() checks in there soon. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 02 Jun 2003 21:51:06 +0000
parents 86456ec3ca25
children bd0d0e89cac3
comparison
equal deleted inserted replaced
5675:17e345ffeddb 5676:dae79aefac8d
1037 return _("Not connected to AIM"); 1037 return _("Not connected to AIM");
1038 1038
1039 /* aim:goim?screenname=screenname&message=message */ 1039 /* aim:goim?screenname=screenname&message=message */
1040 if (!g_ascii_strncasecmp(uri, "aim:goim?", strlen("aim:goim?"))) { 1040 if (!g_ascii_strncasecmp(uri, "aim:goim?", strlen("aim:goim?"))) {
1041 char *who, *what; 1041 char *who, *what;
1042 struct gaim_conversation *c; 1042 GaimConversation *c;
1043 uri = uri + strlen("aim:goim?"); 1043 uri = uri + strlen("aim:goim?");
1044 1044
1045 if (!(who = strstr(uri, "screenname="))) { 1045 if (!(who = strstr(uri, "screenname="))) {
1046 return _("No screenname given."); 1046 return _("No screenname given.");
1047 } 1047 }
1069 1069
1070 c = gaim_conversation_new(GAIM_CONV_IM, gc->account, who); 1070 c = gaim_conversation_new(GAIM_CONV_IM, gc->account, who);
1071 g_free(who); 1071 g_free(who);
1072 1072
1073 if (what) { 1073 if (what) {
1074 struct gaim_gtk_conversation *gtkconv = GAIM_GTK_CONVERSATION(c); 1074 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION(c);
1075 1075
1076 gtk_text_buffer_insert_at_cursor(gtkconv->entry_buffer, what, -1); 1076 gtk_text_buffer_insert_at_cursor(gtkconv->entry_buffer, what, -1);
1077 g_free(what); 1077 g_free(what);
1078 } 1078 }
1079 } else if (!g_ascii_strncasecmp(uri, "aim:addbuddy?", strlen("aim:addbuddy?"))) { 1079 } else if (!g_ascii_strncasecmp(uri, "aim:addbuddy?", strlen("aim:addbuddy?"))) {