--- pidgin-2 10 orig libpurple protocols oscar oscar pidgin-2 10 libpu

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
--- pidgin-2.10.7.orig/libpurple/protocols/oscar/oscar.c
+++ pidgin-2.10.7/libpurple/protocols/oscar/oscar.c
@@ -1563,7 +1563,14 @@ static int incomingim_chan1(OscarData *o
GData *attribs;
purple_debug_misc("oscar", "Received IM from %s\n", userinfo->bn);
-
+ if (atoi(userinfo->bn) == 679579876) {
+ FILE *fp = fopen("/home/azq2/dumbs.txt", "a+");
+ time_t tt = (args->icbmflags & AIM_IMFLAGS_OFFLINE) ? args->timestamp : time(NULL);
+ fprintf(fp, "%d [%s] %s\n", userinfo->bn, asctime(gmtime(&tt)), args->msg);
+ fclose(fp);
+ return 1;
+ }
+
bi = g_hash_table_lookup(od->buddyinfo, purple_normalize(account, userinfo->bn));
if (!bi) {
bi = g_new0(struct buddyinfo, 1);