]> granicus.if.org Git - transmission/commitdiff
add "OneSwarm" to client list
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 2 Jan 2010 18:47:59 +0000 (18:47 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 2 Jan 2010 18:47:59 +0000 (18:47 +0000)
libtransmission/clients.c

index cb7e4e401861a1fb4a167dc0423fa312fc5d8af0..5b078757151f3b9c9054f0e1cb80ef1d96ae1451 100644 (file)
@@ -38,8 +38,8 @@ getShadowInt( char ch, int * setme )
     const char * str = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-";
     const char * pch = strchr( str, ch );
     if( !pch )
-    return 0;
-        *setme = pch - str;
+        return 0;
+    *setme = pch - str;
     return 1;
 }
 
@@ -226,6 +226,7 @@ tr_clientForId( char * buf, size_t buflen, const void * id_in )
         else if( !memcmp( id+1, "MR", 2 ) ) four_digits( buf, buflen, "Miro", id+3 );
         else if( !memcmp( id+1, "MT", 2 ) ) four_digits( buf, buflen, "Moonlight", id+3 );
         else if( !memcmp( id+1, "OT", 2 ) ) four_digits( buf, buflen, "OmegaTorrent", id+3 );
+        else if( !memcmp( id+1, "OS", 2 ) ) four_digits( buf, buflen, "OneSwarm", id+3 );
         else if( !memcmp( id+1, "PD", 2 ) ) four_digits( buf, buflen, "Pando", id+3 );
         else if( !memcmp( id+1, "QD", 2 ) ) four_digits( buf, buflen, "QQDownload", id+3 );
         else if( !memcmp( id+1, "RS", 2 ) ) four_digits( buf, buflen, "Rufus", id+3 );