diff src/protocols/oscar/auth.c @ 7313:be7c1468c6a7

[gaim-migrate @ 7897] I thought I commited some of this a while ago... oh well. None of it is really important at all. I uncommented the available message stuff, it might work for some people (Sam), but doesn't work for me. I don't want to have to comment this out again before 0.72... so someone get this working (Sam). committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 22 Oct 2003 03:32:21 +0000
parents ad243bc63184
children ea2d07ad05a9
line wrap: on
line diff
--- a/src/protocols/oscar/auth.c	Wed Oct 22 02:01:30 2003 +0000
+++ b/src/protocols/oscar/auth.c	Wed Oct 22 03:32:21 2003 +0000
@@ -87,12 +87,9 @@
 #endif
 
 /*
- * Normally the FLAP version is sent as the first few bytes of the cookie,
- * meaning you generally never call this.
- *
- * But there are times when something might want it seperate. Specifically,
- * libfaim sends this internally when doing SNAC login.
- *
+ * The FLAP version is sent by itself at the beginning of authorization 
+ * connections.  The FLAP version is also sent before the cookie when connecting 
+ * for other services (BOS, chatnav, chat, etc.).
  */
 faim_export int aim_sendflapver(aim_session_t *sess, aim_conn_t *conn)
 {
@@ -185,8 +182,6 @@
 /*
  * Subtype 0x0002
  *
- * send_login(int socket, char *sn, char *password)
- *  
  * This is the initial login request packet.
  *
  * NOTE!! If you want/need to make use of the aim_sendmemblock() function,
@@ -277,7 +272,6 @@
  *
  * The client should check the value passed as errorcode. If
  * its nonzero, there was an error.
- *
  */
 static int parse(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
 {
@@ -469,7 +463,7 @@
 	if (!sess || !conn || !sn)
 		return -EINVAL;
 
-	if ((sn[0] >= '0') && (sn[0] <= '9'))
+	if (isdigit(sn[0]))
 		return goddamnicq(sess, conn, sn);
 
 	aim_sendflapver(sess, conn);