ChatRoomListener for Group Chats?

HI,

I have implemented ChatRoomListener in my plugin and implemented the public void chatRoomOpened(ChatRoom cr) method. However, I was wondering if there was any way of differentiating between a a 1-to-1 Chat and a GroupChat?

At the moment i can only implemente one or the other.

Cheers,

John.

Sorted,

Use this code

public void chatRoomOpened(final ChatRoom cr)

{

if(cr instanceof GroupChatRoom)

{

System.out.println(“GROUP CHAT!”);

}

else

{

System.out.println(“SINGLE CHAT!”);

}

Cheers,

John.