浏览代码

Support passwords

Fixes issue 3113

Change-Id: I5d6c28039ac104f6809e5a4cc97da2dd5da1931c
Reviewed-on: http://gerrit.dmdirc.com/77
Reviewed-by: Gregory Holmes <greboid@dmdirc.com>
Tested-by: Gregory Holmes <greboid@dmdirc.com>
tags/0.6.3
Chris Smith 14 年前
父节点
当前提交
44f924caa0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/com/dmdirc/parser/irc/ServerInfo.java

+ 2
- 2
src/com/dmdirc/parser/irc/ServerInfo.java 查看文件

@@ -79,7 +79,7 @@ public class ServerInfo {
79 79
      * the specified URI.
80 80
      *
81 81
      * @param uri The URI of the server
82
-     * @since 0.6.4
82
+     * @since 0.6.3
83 83
      */
84 84
     public ServerInfo(final URI uri) {
85 85
         host = uri.getHost();
@@ -89,7 +89,7 @@ public class ServerInfo {
89 89
             setSSL(true);
90 90
         }
91 91
 
92
-        // TODO (uris): Parse passwords
92
+        password = uri.getUserInfo() == null ? "" : uri.getUserInfo();
93 93
     }
94 94
     
95 95
     /**

正在加载...
取消
保存