Commit 74f73460 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Minor code refactoring.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@850 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0c4ce61b
......@@ -150,13 +150,6 @@ public interface MUCRole extends ChatDeliverer {
*/
String getNickname();
/**
* An event callback for kicks (being removed from a room). This provides the user an
* opportunity to react to the kick (although the chat user has already been kicked when this
* method is called). Remove users from a chatroom by calling ChatRoom.leaveRoom().
*/
void kick();
/**
* Changes the nickname of the occupant within the room to the new nickname.
*
......
......@@ -212,10 +212,6 @@ public class MUCRoleImpl implements MUCRole {
return nick;
}
public void kick() {
getChatUser().removeRole(room.getName());
}
public void changeNickname(String nickname) {
this.nick = nickname;
setRoleAddress(new JID(room.getName(), server.getServiceName(), nick));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment