Ticket #5711: bt-peerid.patch

File bt-peerid.patch, 592 bytes (added by torstehu, 8 years ago)
  • clients.c

    old new  
    285285        {
    286286            tr_snprintf (buf, buflen, "BitRocket %c.%c (%c%c)", id[3], id[4], id[5], id[6]);
    287287        }
     288        else if (!memcmp (id+1, "BT", 2))
     289        {
     290            tr_snprintf (buf, buflen, "BitTorrent %c.%c.%c%s)", id[3], id[4], id[5], id[6] == 'B' ? " (Beta)" : "")
     291        }
    288292        else if (!memcmp (id+1, "CT", 2))
    289293        {
    290294            tr_snprintf (buf, buflen, "CTorrent %d.%d.%02d", charint (id[3]), charint (id[4]), strint (id+5,2));