Diffstat (limited to 'noncore/settings/aqpkg/datamgr.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/datamgr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/settings/aqpkg/datamgr.cpp b/noncore/settings/aqpkg/datamgr.cpp index 67f90a3..93daaba 100644 --- a/noncore/settings/aqpkg/datamgr.cpp +++ b/noncore/settings/aqpkg/datamgr.cpp | |||
@@ -145,31 +145,31 @@ void DataManager :: loadServers() | |||
145 | } | 145 | } |
146 | else if ( lineStr.startsWith( "option" ) || lineStr.startsWith( "#option" ) ) | 146 | else if ( lineStr.startsWith( "option" ) || lineStr.startsWith( "#option" ) ) |
147 | { | 147 | { |
148 | char type[20]; | 148 | char type[20]; |
149 | char val[100]; | 149 | char val[100]; |
150 | sscanf( lineStr, "%*[^ ] %s %s", type, val ); | 150 | sscanf( lineStr, "%*[^ ] %s %s", type, val ); |
151 | if ( stricmp( type, "http_proxy" ) == 0 ) | 151 | if ( qstricmp( type, "http_proxy" ) == 0 ) |
152 | { | 152 | { |
153 | httpProxy = val; | 153 | httpProxy = val; |
154 | if ( lineStr.startsWith( "#" ) ) | 154 | if ( lineStr.startsWith( "#" ) ) |
155 | httpProxyEnabled = false; | 155 | httpProxyEnabled = false; |
156 | else | 156 | else |
157 | httpProxyEnabled = true; | 157 | httpProxyEnabled = true; |
158 | } | 158 | } |
159 | if ( stricmp( type, "ftp_proxy" ) == 0 ) | 159 | if ( qstricmp( type, "ftp_proxy" ) == 0 ) |
160 | { | 160 | { |
161 | ftpProxy = val; | 161 | ftpProxy = val; |
162 | if ( lineStr.startsWith( "#" ) ) | 162 | if ( lineStr.startsWith( "#" ) ) |
163 | ftpProxyEnabled = false; | 163 | ftpProxyEnabled = false; |
164 | else | 164 | else |
165 | ftpProxyEnabled = true; | 165 | ftpProxyEnabled = true; |
166 | } | 166 | } |
167 | if ( stricmp( type, "proxy_username" ) == 0 ) | 167 | if ( qstricmp( type, "proxy_username" ) == 0 ) |
168 | proxyUsername = val; | 168 | proxyUsername = val; |
169 | if ( stricmp( type, "proxy_password" ) == 0 ) | 169 | if ( qstricmp( type, "proxy_password" ) == 0 ) |
170 | proxyPassword = val; | 170 | proxyPassword = val; |
171 | } | 171 | } |
172 | } | 172 | } |
173 | } | 173 | } |
174 | fclose( fp ); | 174 | fclose( fp ); |
175 | 175 | ||