Explorar el Código

Channel Parsing now includes query bits. Fixes issue 3213

Change-Id: I4f78dff4375396396878dd0b9fd81960b495f7d9
Reviewed-on: http://gerrit.dmdirc.com/127
Tested-by: Shane Mc Cormack <shane@dmdirc.com>
Reviewed-by: Gregory Holmes <greboid@dmdirc.com>
tags/0.6.3
Shane Mc Cormack hace 14 años
padre
commit
44f40e3049
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      src/com/dmdirc/parser/irc/Process001.java

+ 2
- 1
src/com/dmdirc/parser/irc/Process001.java Ver fichero

@@ -73,7 +73,8 @@ public class Process001 extends IRCProcessor {
73 73
         final URI uri = myParser.server.getURI();
74 74
         if (uri != null) {
75 75
             String channelString = uri.getPath();
76
-            if (!uri.getFragment().isEmpty()) { channelString += "#" + uri.getFragment(); }
76
+            if (uri.getRawQuery() != null && !uri.getRawQuery().isEmpty()) { channelString += "?" + uri.getRawQuery(); }
77
+            if (uri.getRawFragment() != null && !uri.getRawFragment().isEmpty()) { channelString += "#" + uri.getRawFragment(); }
77 78
             if (channelString.startsWith("/")) { channelString = channelString.substring(1); }
78 79
             
79 80
             myParser.joinChannel(channelString, true);

Loading…
Cancelar
Guardar