equal
deleted
inserted
replaced
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 |