diff options
author | Damian Minkov <damencho@jitsi.org> | 2007-01-13 10:47:34 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2007-01-13 10:47:34 +0000 |
commit | 8ac3b03cc18a5b519b6cd564c1b03e29bd888cc8 (patch) | |
tree | 5675f930141564daa5642d15f0316ab63a813fc1 /src/net/java/sip/communicator/impl/protocol/yahoo/YahooSession.java | |
parent | 72686db9291753b65c896eede9a45e9aac435ad9 (diff) | |
download | jitsi-8ac3b03cc18a5b519b6cd564c1b03e29bd888cc8.zip jitsi-8ac3b03cc18a5b519b6cd564c1b03e29bd888cc8.tar.gz jitsi-8ac3b03cc18a5b519b6cd564c1b03e29bd888cc8.tar.bz2 |
Fix adding friends with @yahoo.com suffix.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/yahoo/YahooSession.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/yahoo/YahooSession.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/yahoo/YahooSession.java b/src/net/java/sip/communicator/impl/protocol/yahoo/YahooSession.java index be04d71..92a0030 100644 --- a/src/net/java/sip/communicator/impl/protocol/yahoo/YahooSession.java +++ b/src/net/java/sip/communicator/impl/protocol/yahoo/YahooSession.java @@ -25,4 +25,11 @@ public class YahooSession { transmitGroupRename(oldName, newName); } + + public static String getYahooUserID(String id) + { + return (id.indexOf("@") > -1 ) + ? id.substring(0, id.indexOf("@")) + : id; + } } |