Misc tweaks and comments.

fix-message-formatting
Danny van Heumen 11 years ago
parent ace03de6ef
commit da4c5dbae7

@ -646,6 +646,7 @@ public String getUserNickname()
* @throws OperationFailedException if the setting the new nickname changes * @throws OperationFailedException if the setting the new nickname changes
* for some reason. * for some reason.
*/ */
@Override
public void setUserNickname(final String nickName) public void setUserNickname(final String nickName)
throws OperationFailedException throws OperationFailedException
{ {
@ -1382,7 +1383,11 @@ public ConferenceDescription publishConference(
@Override @Override
public Contact getPrivateContactByNickname(final String name) public Contact getPrivateContactByNickname(final String name)
{ {
LOGGER.debug("Getting private contact for nick name '" + name + "'."); if (LOGGER.isDebugEnabled())
{
LOGGER.debug("Getting private contact for nick name '" + name
+ "'.");
}
return this.parentProvider.getPersistentPresence() return this.parentProvider.getPersistentPresence()
.findOrCreateContactByID(name); .findOrCreateContactByID(name);
} }

@ -13,21 +13,84 @@
*/ */
public enum Color public enum Color
{ {
/**
* White.
*/
WHITE("White"), WHITE("White"),
/**
* Black.
*/
BLACK("Black"), BLACK("Black"),
/**
* Navy.
*/
BLUE("Navy"), BLUE("Navy"),
/**
* Green.
*/
GREEN("Green"), GREEN("Green"),
/**
* Red.
*/
RED("Red"), RED("Red"),
/**
* Maroon.
*/
BROWN("Maroon"), BROWN("Maroon"),
/**
* Purple.
*/
PURPLE("Purple"), PURPLE("Purple"),
/**
* Orange.
*/
ORANGE("Orange"), ORANGE("Orange"),
/**
* Yellow.
*/
YELLOW("Yellow"), YELLOW("Yellow"),
/**
* Lime.
*/
LIGHT_GREEN("Lime"), LIGHT_GREEN("Lime"),
/**
* Teal.
*/
TEAL("Teal"), TEAL("Teal"),
/**
* Cyan.
*/
LIGHT_CYAN("Cyan"), LIGHT_CYAN("Cyan"),
/**
* RoyalBlue.
*/
LIGHT_BLUE("RoyalBlue"), LIGHT_BLUE("RoyalBlue"),
/**
* Fuchsia.
*/
PINK("Fuchsia"), PINK("Fuchsia"),
/**
* Grey.
*/
GREY("Grey"), GREY("Grey"),
/**
* Silver.
*/
LIGHT_GREY("Silver"); LIGHT_GREY("Silver");
/** /**

@ -15,15 +15,55 @@
*/ */
public enum Mode public enum Mode
{ {
/**
* Instance for unknown mode type.
*/
UNKNOWN('?', null), UNKNOWN('?', null),
/**
* Mode 'Owner'. (Not recognized by all IRC servers.)
*/
OWNER('O', ChatRoomMemberRole.OWNER), OWNER('O', ChatRoomMemberRole.OWNER),
/**
* Mode 'Operator'.
*/
OPERATOR('o', ChatRoomMemberRole.ADMINISTRATOR), OPERATOR('o', ChatRoomMemberRole.ADMINISTRATOR),
/**
* Mode 'Half-Operator'. (Not recognized by all IRC servers.)
*/
HALFOP('h', ChatRoomMemberRole.MODERATOR), HALFOP('h', ChatRoomMemberRole.MODERATOR),
/**
* Mode 'Voice'. For giving voice to an IRC member which comes into effect
* in a moderated channel.
*/
VOICE('v', ChatRoomMemberRole.MEMBER), VOICE('v', ChatRoomMemberRole.MEMBER),
/**
* Mode 'Limit'.
*/
LIMIT('l', null), LIMIT('l', null),
/**
* Mode 'Private'.
*/
PRIVATE('p', null), PRIVATE('p', null),
/**
* Mode 'Secret'.
*/
SECRET('s', null), SECRET('s', null),
/**
* Mode 'Invite'.
*/
INVITE('i', null), INVITE('i', null),
/**
* Mode 'Ban'.
*/
BAN('b', null); BAN('b', null);
/** /**

Loading…
Cancel
Save