瀏覽代碼

Invite now splits host up

git-svn-id: http://svn.dmdirc.com/trunk@2959 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 年之前
父節點
當前提交
4e399325a5
共有 1 個檔案被更改,包括 5 行新增3 行删除
  1. 5
    3
      src/com/dmdirc/Invite.java

+ 5
- 3
src/com/dmdirc/Invite.java 查看文件

22
 
22
 
23
 package com.dmdirc;
23
 package com.dmdirc;
24
 
24
 
25
+import com.dmdirc.parser.ClientInfo;
26
+
25
 import java.util.Date;
27
 import java.util.Date;
26
 
28
 
27
 /**
29
 /**
85
     }
87
     }
86
 
88
 
87
     /**
89
     /**
88
-     * Retrieves the source of this invite.
90
+     * Retrieves the nickname, ident and hostname of this invite's source.
89
      * 
91
      * 
90
      * @return This invite's source
92
      * @return This invite's source
91
      */
93
      */
92
-    public String getSource() {
93
-        return source;
94
+    public String[] getSource() {
95
+        return ClientInfo.parseHostFull(source);
94
     }
96
     }
95
     
97
     
96
     /**
98
     /**

Loading…
取消
儲存