changeset 1383:829242e7348c

[gaim-migrate @ 1393] don't print stuff, and only report caps we can do. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 05 Jan 2001 02:08:15 +0000
parents 0ccf91652dac
children 847b5e39a552
files libfaim/aim_info.c src/oscar.c src/toc.c
diffstat 3 files changed, 8 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/libfaim/aim_info.c	Fri Jan 05 01:52:57 2001 +0000
+++ b/libfaim/aim_info.c	Fri Jan 05 02:08:15 2001 +0000
@@ -153,10 +153,10 @@
       }
     }
     if (!identified) {
-      printf("faim: unknown capability ");
+      faimdprintf(1, "faim: unknown capability ");
       for (y = 0; y < 0x10; y++)
-        printf("%02x ", capblock[offset+y]);
-      printf("\n");
+        faimdprintf(2, "%02x ", capblock[offset+y]);
+      faimdprintf(1, "\n");
       ret |= 0xff00;
     }
 
@@ -378,7 +378,7 @@
 	
 	outinfo->capabilities = aim_getcap(buf+i+4, len);
 	if (outinfo->capabilities & 0xff00)
-          printf("%s\n", outinfo->sn);
+          faimdprintf(2, "%s\n", outinfo->sn);
       }
       break;
       
--- a/src/oscar.c	Fri Jan 05 01:52:57 2001 +0000
+++ b/src/oscar.c	Fri Jan 05 02:08:15 2001 +0000
@@ -55,9 +55,7 @@
 #define USEROPT_SOCKSHOST 2
 #define USEROPT_SOCKSPORT 3
 
-int gaim_caps = AIM_CAPS_CHAT | AIM_CAPS_SENDFILE | AIM_CAPS_GETFILE |
-		AIM_CAPS_VOICE | AIM_CAPS_IMIMAGE | AIM_CAPS_BUDDYICON |
-		AIM_CAPS_GAMES | AIM_CAPS_SAVESTOCKS;
+int gaim_caps = AIM_CAPS_CHAT | AIM_CAPS_GETFILE;
 
 struct oscar_data {
 	struct aim_session_t *sess;
--- a/src/toc.c	Fri Jan 05 01:52:57 2001 +0000
+++ b/src/toc.c	Fri Jan 05 02:08:15 2001 +0000
@@ -46,7 +46,7 @@
 #include "pixmaps/dt_icon.xpm"
 #include "pixmaps/free_icon.xpm"
 
-#define REVISION "gaim:$Revision: 1380 $"
+#define REVISION "gaim:$Revision: 1393 $"
 
 #define TYPE_SIGNON    1
 #define TYPE_DATA      2
@@ -337,9 +337,8 @@
 		g_snprintf(snd, sizeof snd, "toc_init_done");
 		sflap_send(gc, snd, -1, TYPE_DATA);
 
-		g_snprintf(snd, sizeof snd, "toc_set_caps %s %s %s %s %s %s %s",
-			   FILE_SEND_UID, FILE_GET_UID, B_ICON_UID, IMAGE_UID, VOICE_UID,
-			   STOCKS_UID, GAMES_UID);
+		g_snprintf(snd, sizeof snd, "toc_set_caps %s %s",
+			   FILE_SEND_UID, FILE_GET_UID);
 		sflap_send(gc, snd, -1, TYPE_DATA);
 
 		return;