im.pidgin.pidgin: df2444b32fee20e7cf66b2c1bff247a472eda938
markdoliner at pidgin.im
markdoliner at pidgin.im
Sun Dec 2 03:40:42 EST 2007
-----------------------------------------------------------------
Revision: df2444b32fee20e7cf66b2c1bff247a472eda938
Ancestor: 75d4255e8fc5d320ac4ed6b04e392b219dc8b70a
Author: markdoliner at pidgin.im
Date: 2007-12-02T08:39:31
Branch: im.pidgin.pidgin
Modified files:
libpurple/protocols/oscar/family_icbm.c
libpurple/protocols/oscar/oscar.c
ChangeLog:
Get rid of one little userfunc callback and just call aim_im_setparams()
directly from aim_im_paraminfo()
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/family_icbm.c 76bc8363efb633bdf789219652edd9f3d355ccce
+++ libpurple/protocols/oscar/family_icbm.c 1396a264b2ece8dc0da7131139761b4be5c11022
@@ -209,7 +209,6 @@ static int aim_im_paraminfo(OscarData *o
*/
static int aim_im_paraminfo(OscarData *od, FlapConnection *conn, aim_module_t *mod, FlapFrame *frame, aim_modsnac_t *snac, ByteStream *bs)
{
- aim_rxcallback_t userfunc;
struct aim_icbmparameters params;
params.maxchan = byte_stream_get16(bs);
@@ -219,9 +218,12 @@ static int aim_im_paraminfo(OscarData *o
params.maxrecverwarn = byte_stream_get16(bs);
params.minmsginterval = byte_stream_get32(bs);
- if ((userfunc = aim_callhandler(od, snac->family, snac->subtype)))
- return userfunc(od, conn, frame, ¶ms);
+ params.flags = 0x0000000b;
+ params.maxmsglen = 8000;
+ params.minmsginterval = 0;
+ aim_im_setparams(od, ¶ms);
+
return 0;
}
============================================================
--- libpurple/protocols/oscar/oscar.c 95f012a1c7c1ffa4468dd449e67cbe1c582f1b7b
+++ libpurple/protocols/oscar/oscar.c 5173447a84a424231ba2b32fee111c82a85bc97d
@@ -176,7 +176,6 @@ static int purple_parse_locerr (Osca
static int purple_parse_locaterights(OscarData *, FlapConnection *, FlapFrame *, ...);
static int purple_parse_buddyrights(OscarData *, FlapConnection *, FlapFrame *, ...);
static int purple_parse_locerr (OscarData *, FlapConnection *, FlapFrame *, ...);
-static int purple_icbm_param_info (OscarData *, FlapConnection *, FlapFrame *, ...);
static int purple_parse_genericerr (OscarData *, FlapConnection *, FlapFrame *, ...);
static int purple_memrequest (OscarData *, FlapConnection *, FlapFrame *, ...);
static int purple_selfinfo (OscarData *, FlapConnection *, FlapFrame *, ...);
@@ -1228,7 +1227,6 @@ oscar_login(PurpleAccount *account)
oscar_data_addhandler(od, SNAC_FAMILY_FEEDBAG, SNAC_SUBTYPE_FEEDBAG_RECVAUTHREQ, purple_ssi_authrequest, 0);
oscar_data_addhandler(od, SNAC_FAMILY_FEEDBAG, SNAC_SUBTYPE_FEEDBAG_RECVAUTHREP, purple_ssi_authreply, 0);
oscar_data_addhandler(od, SNAC_FAMILY_FEEDBAG, SNAC_SUBTYPE_FEEDBAG_ADDED, purple_ssi_gotadded, 0);
- oscar_data_addhandler(od, SNAC_FAMILY_ICBM, 0x0005, purple_icbm_param_info, 0);
oscar_data_addhandler(od, SNAC_FAMILY_ICBM, SNAC_SUBTYPE_ICBM_INCOMING, purple_parse_incoming_im, 0);
oscar_data_addhandler(od, SNAC_FAMILY_ICBM, SNAC_SUBTYPE_ICBM_MISSEDCALL, purple_parse_misses, 0);
oscar_data_addhandler(od, SNAC_FAMILY_ICBM, SNAC_SUBTYPE_ICBM_CLIENTAUTORESP, purple_parse_clientauto, 0);
@@ -3498,32 +3496,6 @@ static int purple_connerr(OscarData *od,
return 1;
}
-static int purple_icbm_param_info(OscarData *od, FlapConnection *conn, FlapFrame *fr, ...) {
- struct aim_icbmparameters *params;
- va_list ap;
-
- va_start(ap, fr);
- params = va_arg(ap, struct aim_icbmparameters *);
- va_end(ap);
-
- /* XXX - evidently this crashes on solaris. i have no clue why
- purple_debug_misc("oscar", "ICBM Parameters: maxchannel = %hu, default flags = 0x%08lx, max msg len = %hu, "
- "max sender evil = %f, max receiver evil = %f, min msg interval = %u\n",
- params->maxchan, params->flags, params->maxmsglen,
- ((float)params->maxsenderwarn)/10.0, ((float)params->maxrecverwarn)/10.0,
- params->minmsginterval);
- */
-
- /* Maybe senderwarn and recverwarn should be user preferences... */
- params->flags = 0x0000000b;
- params->maxmsglen = 8000;
- params->minmsginterval = 0;
-
- aim_im_setparams(od, params);
-
- return 1;
-}
-
static int purple_parse_locaterights(OscarData *od, FlapConnection *conn, FlapFrame *fr, ...)
{
PurpleConnection *gc = od->gc;
More information about the Commits
mailing list