Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 671:c5da36fd437a
Do not process packet if type = 0
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 15 Jan 2006 10:49:50 +0100 |
parents | d0928694c81b |
children | 633a0522bd37 |
comparison
equal
deleted
inserted
replaced
670:2cd0805515a4 | 671:c5da36fd437a |
---|---|
1440 char *from=NULL, *type=NULL; | 1440 char *from=NULL, *type=NULL; |
1441 | 1441 |
1442 jb_reset_keepalive(); // reset keepalive timeout | 1442 jb_reset_keepalive(); // reset keepalive timeout |
1443 jpacket_reset(packet); | 1443 jpacket_reset(packet); |
1444 | 1444 |
1445 if (!packet->type) { | |
1446 scr_LogPrint(LPRINT_LOG, "Packet type = 0"); | |
1447 return; | |
1448 } | |
1449 | |
1445 p = xmlnode_get_attrib(packet->x, "type"); | 1450 p = xmlnode_get_attrib(packet->x, "type"); |
1446 if (p) type = p; | 1451 if (p) type = p; |
1447 | 1452 |
1448 p = xmlnode_get_attrib(packet->x, "from"); | 1453 p = xmlnode_get_attrib(packet->x, "from"); |
1449 if (p) { // Convert from UTF8 | 1454 if (p) { // Convert from UTF8 |