aboutsummaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorDanny van Heumen <danny@dannyvanheumen.nl>2014-08-05 00:07:34 +0200
committerDanny van Heumen <danny@dannyvanheumen.nl>2014-08-05 00:07:34 +0200
commit304899d73e81432bf3d2ea5ba024921480d4663c (patch)
tree3bb5bdf0a4935d5d286e60140191317c4f03a10d /src/net
parent1d44622699201ddbc6d10b13085f22982ff10eeb (diff)
downloadjitsi-304899d73e81432bf3d2ea5ba024921480d4663c.zip
jitsi-304899d73e81432bf3d2ea5ba024921480d4663c.tar.gz
jitsi-304899d73e81432bf3d2ea5ba024921480d4663c.tar.bz2
Disallow nick changes for individual chat rooms.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImpl.java23
1 files changed, 4 insertions, 19 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImpl.java b/src/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImpl.java
index c31f30e..ab9c47f 100644
--- a/src/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImpl.java
@@ -643,25 +643,10 @@ public class ChatRoomIrcImpl
public void setUserNickname(final String nickName)
throws OperationFailedException
{
- // FIXME Consider not supporting this operation. Chat rooms can be
- // configured to have their own nick name, which causes nick changes
- // upon joining that particular chat room.
- try
- {
- parentProvider.getIrcStack().setUserNickname(nickName);
- }
- catch (RuntimeException e)
- {
- if (e.getCause() instanceof IOException)
- {
- throw new OperationFailedException(
- "Failed to change nick name.",
- OperationFailedException.NETWORK_FAILURE, e.getCause());
- }
-
- throw new OperationFailedException("Failed to change nick name.",
- OperationFailedException.GENERAL_ERROR, e);
- }
+ throw new OperationFailedException(
+ "Nick names are managed by the connection to the IRC server. They "
+ + "cannot be changed on the level of an invididual chat room.",
+ OperationFailedException.NOT_SUPPORTED_OPERATION);
}
/**