diff src/oscar.c @ 252:4a41f8323022

[gaim-migrate @ 262] Small changes. some things work better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 22 May 2000 23:58:03 +0000
parents c5aa7bf99059
children 5b28ef2b550e
line wrap: on
line diff
--- a/src/oscar.c	Mon May 22 23:57:41 2000 +0000
+++ b/src/oscar.c	Mon May 22 23:58:03 2000 +0000
@@ -469,8 +469,28 @@
 		va_end(ap);
 
 		serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY);
+	} else if (channel == 2) {
+		struct aim_userinfo_s *userinfo;
+		int rendtype = va_arg(ap, int);
+		if (rendtype == 0) {
+			char *msg, *encoding, *lang;
+			struct aim_chat_roominfo *roominfo;
+
+			userinfo = va_arg(ap, struct aim_userinfo_s *);
+			roominfo = va_arg(ap, struct aim_chat_roominfo *);
+			msg      = va_arg(ap, char *);
+			encoding = va_arg(ap, char *);
+			lang     = va_arg(ap, char *);
+			va_end(ap);
+
+			serv_got_chat_invite(roominfo->name,
+					     roominfo->instance,
+					     userinfo->sn,
+					     msg);
+		} else if (rendtype == 1) {
+			/* FIXME : voice chat */
+		}
 	}
-	/* FIXME : channel == 2 is RVOUS requests, including chat invitations */
 
 	return 1;
 }
@@ -526,7 +546,8 @@
 	va_end(ap);
 
 	if (prof == NULL || !strlen(prof)) {
-		do_error_dialog("User has no away message.", "Gaim - Away Msg");
+		do_error_dialog("User has no info/away message.",
+				"Gaim - User Info");
 		return 1;
 	}