Ver código fonte

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 anos atrás
pai
commit
4e399325a5
1 arquivos alterados com 5 adições e 3 exclusões
  1. 5
    3
      src/com/dmdirc/Invite.java

+ 5
- 3
src/com/dmdirc/Invite.java Ver arquivo

@@ -22,6 +22,8 @@
22 22
 
23 23
 package com.dmdirc;
24 24
 
25
+import com.dmdirc.parser.ClientInfo;
26
+
25 27
 import java.util.Date;
26 28
 
27 29
 /**
@@ -85,12 +87,12 @@ public class Invite {
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 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
     /**

Carregando…
Cancelar
Salvar