aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin
diff options
context:
space:
mode:
authorDanny van Heumen <danny@dannyvanheumen.nl>2015-01-14 22:23:45 +0100
committerDanny van Heumen <danny@dannyvanheumen.nl>2015-01-14 22:23:45 +0100
commit9fb4c103ada01379008f7331cd29dcd56dfe7c9b (patch)
tree35d0c97f5e94033c60c86f01eaf3f36d54d79dd8 /src/net/java/sip/communicator/plugin
parentc2d1ec097c4b42aa25f7c92c4c1ebc9ee96d054b (diff)
downloadjitsi-9fb4c103ada01379008f7331cd29dcd56dfe7c9b.zip
jitsi-9fb4c103ada01379008f7331cd29dcd56dfe7c9b.tar.gz
jitsi-9fb4c103ada01379008f7331cd29dcd56dfe7c9b.tar.bz2
IRC: check nick according to nick pattern in RFC 1459.
Diffstat (limited to 'src/net/java/sip/communicator/plugin')
-rw-r--r--src/net/java/sip/communicator/plugin/irccommands/command/Nick.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/plugin/irccommands/command/Nick.java b/src/net/java/sip/communicator/plugin/irccommands/command/Nick.java
index f3fe3b6..599a638 100644
--- a/src/net/java/sip/communicator/plugin/irccommands/command/Nick.java
+++ b/src/net/java/sip/communicator/plugin/irccommands/command/Nick.java
@@ -66,7 +66,7 @@ public class Nick implements Command
{
newNick = part.substring(0, indexOfSep);
}
- if (newNick.length() > 0)
+ if (!newNick.isEmpty())
{
this.connection.getIdentityManager().setNick(newNick);
}