Extended nick check with check for '&' channel prefix.

fix-message-formatting
Danny van Heumen 12 years ago
parent f20c8cdec8
commit f954feb608

@ -1630,9 +1630,9 @@ private String checkNick(String nick)
if (nick == null)
throw new IllegalArgumentException(
"a nick name must be provided");
if (nick.startsWith("#"))
if (nick.startsWith("#") || nick.startsWith("&"))
throw new IllegalArgumentException(
"the nick name must not start with '#' "
"the nick name must not start with '#' or '&' "
+ "since this is reserved for IRC channels");
return nick;
}

Loading…
Cancel
Save