changeset 1315:7f7e3bfb1af7

[gaim-migrate @ 1325] small changes. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 19 Dec 2000 14:31:15 +0000
parents 5ad8344b6e50
children d5069ad0b6b1
files TODO libfaim/Makefile.am plugins/jabber/jabber.c src/Makefile.am src/oscar.c
diffstat 5 files changed, 19 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/TODO	Tue Dec 19 14:08:06 2000 +0000
+++ b/TODO	Tue Dec 19 14:31:15 2000 +0000
@@ -1,4 +1,14 @@
---- STUFF FOR 0.11.1 RELEASE ---
+--- STUFF FOR 0.11.0 RELEASE ---
+
+	Make Yahoo plugin let you have two identities in the same connection
+		(different from multiple connections)
+	Figure out some way of not displaying a million new mail messages
+	Allow messages through server for ICQ
+	Chat for Yahoo/ICQ
+	File transfer for Yahoo/ICQ/Oscar
+	Working file transfer for TOC
+	Other RVOUS actions for TOC/Oscar
+	Get Jabber working
 
 	Syd is cool and gave all of these ideas:
 		Have multiple tickers in the same window, one for buddies
--- a/libfaim/Makefile.am	Tue Dec 19 14:08:06 2000 +0000
+++ b/libfaim/Makefile.am	Tue Dec 19 14:31:15 2000 +0000
@@ -1,5 +1,3 @@
-CFLAGS = -I\$(top_srcdir)/libfaim -I\$(top_srcdir)/libfaim/faim
-
 noinst_LIBRARIES = libfaim.a
 
 EXTRA_DIST = faim/aim.h faim/aim_cbtypes.h faim/faimconfig.h md5.h README \
--- a/plugins/jabber/jabber.c	Tue Dec 19 14:08:06 2000 +0000
+++ b/plugins/jabber/jabber.c	Tue Dec 19 14:31:15 2000 +0000
@@ -91,7 +91,7 @@
 static void gjab_delete(gjconn j);
 static void gjab_state_handler(gjconn j, gjconn_state_h h);
 static void gjab_packet_handler(gjconn j, gjconn_packet_h h);
-static void gjab_start(gjconn j);
+static void gjab_start(gjconn j, int port);
 static void gjab_stop(gjconn j);
 static int gjab_getfd(gjconn j);
 static jid gjab_getjid(gjconn j);
@@ -364,7 +364,7 @@
         xmlnode_insert_cdata(j->current, s, slen);
 }
 
-static void gjab_start(gjconn j)
+static void gjab_start(gjconn j, int port)
 {
     xmlnode x;
     char *t,*t2;
@@ -377,7 +377,7 @@
     XML_SetElementHandler(j->parser, startElement, endElement);
     XML_SetCharacterDataHandler(j->parser, charData);
 
-    j->fd = make_netsocket(5222, j->user->server, NETSOCKET_CLIENT);
+    j->fd = make_netsocket(port, j->user->server, NETSOCKET_CLIENT);
     if(j->fd < 0) {
         STATE_EVT(JCONN_STATE_OFF)
         return;
@@ -597,6 +597,7 @@
 	struct gaim_connection *gc = new_gaim_conn(user);
 	struct jabber_data *jd = gc->proto_data = g_new0(struct jabber_data, 1);
 	char *tmp;
+	int port;
 
 	set_login_progress(gc, 1, "Connecting");
 	while (gtk_events_pending())
@@ -620,7 +621,8 @@
 
         gjab_state_handler(jd->jc, jabber_handlestate);
         gjab_packet_handler(jd->jc, jabber_handlepacket);
-        gjab_start(jd->jc);
+	port = user->proto_opt[USEROPT_PORT][0] ? atoi(user->proto_opt[USEROPT_PORT]) : 5222;
+        gjab_start(jd->jc, port);
 
 
 	gc->inpa = gdk_input_add(jd->jc->fd, 
--- a/src/Makefile.am	Tue Dec 19 14:08:06 2000 +0000
+++ b/src/Makefile.am	Tue Dec 19 14:31:15 2000 +0000
@@ -66,7 +66,7 @@
 
 # libfaim stuff. should be here instead of configure.in, since plugins/prpls shouldn't
 # rely on libfaim (the only file that should depend on it is oscar.c)
-CFLAGS += -I\$(top_srcdir)/libfaim -I\$(top_srcdir)/libfaim/faim
+CFLAGS += -I\$(top_srcdir)/libfaim
 LIBS += -L../libfaim -lfaim
 
 # Perl stuff. plugins shouldn't need this either (right?)
--- a/src/oscar.c	Tue Dec 19 14:08:06 2000 +0000
+++ b/src/oscar.c	Tue Dec 19 14:31:15 2000 +0000
@@ -40,7 +40,7 @@
 #include "multi.h"
 #include "prpl.h"
 #include "gaim.h"
-#include "aim.h"
+#include "faim/aim.h"
 
 #include "pixmaps/cancel.xpm"
 #include "pixmaps/admin_icon.xpm"