[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freehoo-devel] [PATCH: freehoo] mail and typing notification
From: |
Mridul Jain |
Subject: |
[Freehoo-devel] [PATCH: freehoo] mail and typing notification |
Date: |
Mon, 13 Sep 2004 15:39:02 +0530 |
User-agent: |
Mozilla Thunderbird 0.7.1 (X11/20040715) |
hi Ab,
I cannot commit directly to the cvs, so I am sending the patch for mail,
typing notification. More work can be done, depending on the testing of
these.
MJ
--- freehoo/src/yahoo-backend.c 2004-09-13 01:57:39.000000000 +0530
+++ freehoo-hacked/src/yahoo-backend.c 2004-09-13 15:27:45.000000000 +0530
@@ -67,10 +67,10 @@
#include "extension.h"
static char *local_host = NULL;
-static int do_mail_notify = 0;
+//static int do_mail_notify = 0;
static int do_yahoo_debug = 0;
static int ignore_system = 0;
-///// static int do_typing_notify = 1; // commented to prevent warning
+//static int do_typing_notify = 1; // commented to prevent warning
static int accept_webcam_viewers = 1;
static int send_webcam_images = 0;
///// static int webcam_direction = YAHOO_WEBCAM_DOWNLOAD; // commented to
prevent warning
@@ -699,10 +699,10 @@ ext_yahoo_contact_added (int id, char *m
void
ext_yahoo_typing_notify (int id, char *who, int stat)
{
- /* Disable it for now....
- if (stat && do_typing_notify)
- print_message (("%s is typing...", who));
- */
+
+ if (stat) // && do_typing_notify)
+ PRINTF_MESSAGE("%s is typing...", who);
+
// if (stat && TRUE)
// set_default_prompt as (prompt + [who]);
}
@@ -725,8 +725,14 @@ ext_yahoo_mail_notify (int id, char *fro
{
char buff[1024] = { 0 };
- if (!do_mail_notify)
- return;
+ // PRINTF_MESSAGE ("Mail received...");
+
+ /*if (!do_mail_notify)
+ {
+ PRINTF_MESSAGE ("Mail received 2...");
+ return;
+ }
+ */
if (from && subj)
snprintf (buff, sizeof (buff),
@@ -1551,7 +1557,13 @@ main_loop ()
}
if (FD_ISSET (fd_stdin, &inp))
- rl_callback_read_char ();
+ {
+ yahoo_send_typing (ylad->id, get_default_login_id(),
get_current_target_buddy(), 0);
+ if (get_current_target_buddy() != NULL)
+ yahoo_send_typing (ylad->id, get_default_login_id(),
get_current_target_buddy(), 1);
+
+ rl_callback_read_char ();
+ }
/* >>> Original freehoo code ends here >>> */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freehoo-devel] [PATCH: freehoo] mail and typing notification,
Mridul Jain <=