aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2007-09-13 12:41:42 +0000
committerYana Stamcheva <yana@jitsi.org>2007-09-13 12:41:42 +0000
commitcac73a51a341aff34531fa0da31e8078a9a5e147 (patch)
tree3b2d0c44f7abb24ce97357e18de6111cbc00c5af /src
parent0cbff1ac20597d4cf0e90d071e490794842d1d2e (diff)
downloadjitsi-cac73a51a341aff34531fa0da31e8078a9a5e147.zip
jitsi-cac73a51a341aff34531fa0da31e8078a9a5e147.tar.gz
jitsi-cac73a51a341aff34531fa0da31e8078a9a5e147.tar.bz2
IRC server messages enhancements
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/irc/IrcStack.java17
-rw-r--r--src/net/java/sip/communicator/impl/protocol/irc/ProtocolProviderServiceIrcImpl.java4
2 files changed, 14 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/irc/IrcStack.java b/src/net/java/sip/communicator/impl/protocol/irc/IrcStack.java
index bd71560..9ebd2ac 100644
--- a/src/net/java/sip/communicator/impl/protocol/irc/IrcStack.java
+++ b/src/net/java/sip/communicator/impl/protocol/irc/IrcStack.java
@@ -1153,11 +1153,17 @@ public class IrcStack
+ " Response : "
+ response);
+ int delimiterIndex = response.indexOf(':');
+
+ if(delimiterIndex != -1 && delimiterIndex < response.length() - 1)
+ response = response.substring(delimiterIndex + 1);
+
MessageIrcImpl message
- = new MessageIrcImpl( response,
- MessageIrcImpl.DEFAULT_MIME_TYPE,
- MessageIrcImpl.DEFAULT_MIME_ENCODING,
- null);
+ = new MessageIrcImpl(
+ response,
+ MessageIrcImpl.DEFAULT_MIME_TYPE,
+ MessageIrcImpl.DEFAULT_MIME_ENCODING,
+ null);
ChatRoomIrcImpl serverRoom
= (ChatRoomIrcImpl) ircMUCOpSet.getSystemRoom();
@@ -1173,7 +1179,8 @@ public class IrcStack
sourceMember
= new ChatRoomMemberIrcImpl(parentProvider,
serverRoom,
- "",
+ parentProvider.getAccountID()
+ .getService(),
"",
"",
ChatRoomMemberRole.GUEST);
diff --git a/src/net/java/sip/communicator/impl/protocol/irc/ProtocolProviderServiceIrcImpl.java b/src/net/java/sip/communicator/impl/protocol/irc/ProtocolProviderServiceIrcImpl.java
index ca31350..dff0258 100644
--- a/src/net/java/sip/communicator/impl/protocol/irc/ProtocolProviderServiceIrcImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/irc/ProtocolProviderServiceIrcImpl.java
@@ -454,8 +454,8 @@ public class ProtocolProviderServiceIrcImpl
* @param currentRegistrationState the new registration state to set
*/
protected void setCurrentRegistrationState(
- RegistrationState currentRegistrationState)
+ RegistrationState regState)
{
- this.currentRegistrationState = currentRegistrationState;
+ this.currentRegistrationState = regState;
}
} \ No newline at end of file