changeset 3479:84df15473af6

[gaim-migrate @ 3533] Robot101 points out that AIM uri's don't have // in them. aim:goim?screenname=bzubhipheron&message=thanks+for+the+fix+robot101 committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 30 Aug 2002 16:20:40 +0000
parents 3da42b64304e
children fc28f412e74d
files src/util.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Fri Aug 30 16:09:22 2002 +0000
+++ b/src/util.c	Fri Aug 30 16:20:40 2002 +0000
@@ -1287,11 +1287,11 @@
 	if (gc == NULL)
 		return "Not connected to AIM";
 
- 	/* aim://goim?screenname=screenname&message=message */
-	if (!g_strncasecmp(uri, "aim://goim?", strlen("aim://goim?"))) {
+ 	/* aim:goim?screenname=screenname&message=message */
+	if (!g_strncasecmp(uri, "aim:goim?", strlen("aim:goim?"))) {
 		char *who, *what;
 		struct conversation *c;
-		uri = uri + strlen("aim://goim?");
+		uri = uri + strlen("aim:goim?");
 		
 		if (!(who = strstr(uri, "screenname="))) {
 			return "No screenname given.";
@@ -1326,9 +1326,9 @@
 					 what, strlen(what), &finish);
 			g_free(what);
 		}
-	} else if (!g_strncasecmp(uri, "aim://addbuddy?", strlen("aim://addbuddy?"))) {
+	} else if (!g_strncasecmp(uri, "aim:addbuddy?", strlen("aim:addbuddy?"))) {
 		char *who, *group;
-		uri = uri + strlen("aim://addbuddy?");
+		uri = uri + strlen("aim:addbuddy?");
 		/* spaces are encoded as +'s */
 		
 		if (!(who = strstr(uri, "screenname="))) {
@@ -1359,12 +1359,12 @@
 		g_free(who);
 		if (group)
 			g_free(group);
-	} else if (!g_strncasecmp(uri, "aim://gochat?", strlen("aim://gochat?"))) {
+	} else if (!g_strncasecmp(uri, "aim:gochat?", strlen("aim:gochat?"))) {
 		char *room;
 		GList *chat=NULL;
 		int exch = 5;
 		
-		uri = uri + strlen("aim://gochat?");
+		uri = uri + strlen("aim:gochat?");
 		/* spaces are encoded as +'s */
 		
 		if (!(room = strstr(uri, "roomname="))) {