changeset 2013:0be1e533036c

[gaim-migrate @ 2023] wee committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 13 Jun 2001 23:39:26 +0000
parents 5748a6faa461
children 162f749ee5e7
files configure.in plugins/icq/ChangeLog plugins/icq/contacts.c plugins/icq/filesession.c plugins/icq/tcp.c
diffstat 5 files changed, 59 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Wed Jun 13 23:15:57 2001 +0000
+++ b/configure.in	Wed Jun 13 23:39:26 2001 +0000
@@ -222,6 +222,7 @@
 	dnl checks for icqlib
 	AC_CHECK_HEADERS(asm/byteorder.h byteswap.h endian.h machine/endian.h arpa/nameser_compat.h)
 	AC_CHECK_FUNCS(bswap_32 bswap_16)
+	AC_C_BIGENDIAN
 
 	dnl checks for jabber
 	dnl AC_CHECK_SIZEOF(short)
--- a/plugins/icq/ChangeLog	Wed Jun 13 23:15:57 2001 +0000
+++ b/plugins/icq/ChangeLog	Wed Jun 13 23:39:26 2001 +0000
@@ -1,3 +1,15 @@
+2001-06-11  Denis V. Dmitrienko  <denix@kde.org>
+
+	* icqlib/filesession.c:
+	Applied patch #431942 which fixes Win32-specific typo.
+
+	* icqlib/tcp.c:
+	Applied patch #431945 which adds icq_TCPSendAwayMessageReq() function.
+
+	* icqlib/contacts.c:
+	Applied patch #431950 which fixes bug with invisibility to a random
+	set of buddies.
+
 2001-06-08  Denis V. Dmitrienko  <denix@kde.org>
 
 	* admin/acinclude.m4.in, admin/config.guess, admin/config.sub,
--- a/plugins/icq/contacts.c	Wed Jun 13 23:15:57 2001 +0000
+++ b/plugins/icq/contacts.c	Wed Jun 13 23:39:26 2001 +0000
@@ -1,7 +1,7 @@
 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 
 /*
- * $Id: contacts.c 1987 2001-06-09 14:46:51Z warmenhoven $
+ * $Id: contacts.c 2023 2001-06-13 23:39:26Z warmenhoven $
  *
  * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and
  *                          Bill Soudan <soudan@kde.org>
@@ -49,6 +49,7 @@
   icq_ContactItem *p = icq_ContactNew(icqlink);
   p->uin = cuin;
   p->vis_list = FALSE;
+  p->invis_list = FALSE;
 
   icq_ListEnqueue(icqlink->d->icq_ContactList, p);
 }
--- a/plugins/icq/filesession.c	Wed Jun 13 23:15:57 2001 +0000
+++ b/plugins/icq/filesession.c	Wed Jun 13 23:39:26 2001 +0000
@@ -1,7 +1,7 @@
 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 
 /*
- * $Id: filesession.c 1987 2001-06-09 14:46:51Z warmenhoven $
+ * $Id: filesession.c 2023 2001-06-13 23:39:26Z warmenhoven $
  *
  * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and
  *                          Bill Soudan <soudan@kde.org>
@@ -215,7 +215,7 @@
        p->current_file_progress=0;
        p->current_file_size=file_status.st_size;
 #ifdef _WIN32
-       p->current_fd=open(*files, O_RDONLY | _O_BINARY);
+       p->current_fd=open(*files, _O_RDONLY | _O_BINARY);
 #else
        p->current_fd=open(*files, O_RDONLY);
 #endif
--- a/plugins/icq/tcp.c	Wed Jun 13 23:15:57 2001 +0000
+++ b/plugins/icq/tcp.c	Wed Jun 13 23:39:26 2001 +0000
@@ -1,7 +1,7 @@
 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 
 /*
- * $Id: tcp.c 1987 2001-06-09 14:46:51Z warmenhoven $
+ * $Id: tcp.c 2023 2001-06-13 23:39:26Z warmenhoven $
  *
  * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and
  *                          Bill Soudan <soudan@kde.org>
@@ -158,6 +158,47 @@
   return sequence;
 }
 
+DWORD icq_TCPSendAwayMessageReq(icq_Link *icqlink, DWORD uin, int status)
+{
+  icq_TCPLink *plink;
+  icq_Packet *p;
+  DWORD sequence;
+  WORD type;
+  
+  plink=icq_TCPCheckLink(icqlink, uin, TCP_LINK_MESSAGE);
+
+  /* create and send the message packet */
+  switch(status)
+  {
+    case STATUS_AWAY:
+      type=ICQ_TCP_MSG_READAWAY;
+      break;
+    case STATUS_DND:
+      type=ICQ_TCP_MSG_READDND;
+      break;
+    case STATUS_NA:
+      type=ICQ_TCP_MSG_READNA;
+      break;
+    case STATUS_OCCUPIED:
+      type=ICQ_TCP_MSG_READOCCUPIED;
+      break;
+    case STATUS_FREE_CHAT:
+      type=ICQ_TCP_MSG_READFFC;
+      break;
+    default:
+      type=ICQ_TCP_MSG_READAWAY;
+      break;
+  }
+  p=icq_TCPCreateAwayReqPacket(plink, type);
+  sequence=icq_TCPLinkSendSeq(plink, p, 0);
+
+#ifdef TCP_PACKET_TRACE
+  printf("away msg request packet sent to uin %lu { sequence=%lx }\n", uin, p->id);
+#endif
+
+  return sequence;
+}
+
 DWORD icq_SendChatRequest(icq_Link *icqlink, DWORD uin, const char *message)
 {
   icq_TCPLink *plink;