Parcourir la source

Fix logic, move documentation.

pull/310/head
Greg Holmes il y a 9 ans
Parent
révision
630ae8ef62
1 fichiers modifiés avec 7 ajouts et 6 suppressions
  1. 7
    6
      src/com/dmdirc/Channel.java

+ 7
- 6
src/com/dmdirc/Channel.java Voir le fichier

@@ -411,14 +411,15 @@ public class Channel extends MessageTarget implements GroupChat {
411 411
     /**
412 412
      * Returns a string[] containing the nickname/ident/host of a channel client.
413 413
      *
414
-     * 0 - mode
415
-     * 1 - nickname
416
-     * 2 - ident
417
-     * 3 - hostname
414
+     *
418 415
      *
419 416
      * @param client The channel client to check
420 417
      *
421
-     * @return A string[] containing displayable components
418
+     * @return  A string[] containing displayable components
419
+     *          0 - mode
420
+     *          1 - nickname
421
+     *          2 - ident
422
+     *          3 - hostname
422 423
      */
423 424
     private String[] getDetails(final GroupChatUser client) {
424 425
         if (client == null) {
@@ -441,7 +442,7 @@ public class Channel extends MessageTarget implements GroupChat {
441 442
             if (foreground.isPresent()) {
442 443
                 String prefix = Styliser.CODE_HEXCOLOUR + ColourUtils.getHex(foreground.get());
443 444
                 if (background.isPresent()) {
444
-                    prefix = ',' + ColourUtils.getHex(background.get());
445
+                    prefix += ',' + ColourUtils.getHex(background.get());
445 446
                 }
446 447
                 res[1] = prefix + res[1] + Styliser.CODE_HEXCOLOUR;
447 448
             }

Chargement…
Annuler
Enregistrer