OSDN Git Service

support machibbs
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 20 Oct 2004 15:03:39 +0000 (15:03 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 20 Oct 2004 15:03:39 +0000 (15:03 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1472 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/libkita/datmanager.cpp

index 4172911..814a7ed 100644 (file)
@@ -76,7 +76,12 @@ DatInfo* DatManager::getDatInfo( const KURL& url )
     /* not found */
 
     /*create new DatInfo and insert it into list. */
-    KURL daturl = url.protocol() + "://" + url.host() + url.path();
+    KURL daturl;
+    if ( url.host().contains( "machi.to" ) ) {
+        daturl = url;
+    } else {
+        daturl = url.protocol() + "://" + url.host() + url.path();
+    }
 
     datInfo = new DatInfo( daturl );
     if ( datInfo->getRawDat() == QString::null ) { /* cache does not exist */