Skip to content

Commit b51db9c

Browse files
committed
Remove problematic colons. Regular colon screening is part of a healthy lifestyle.
1 parent 86cc8c3 commit b51db9c

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/org/kitteh/irc/client/library/implementation

1 file changed

+3
-3
lines changed

src/main/java/org/kitteh/irc/client/library/implementation/IRCClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public void addChannel(@Nonnull String... channels) {
251251
}
252252
for (String channelName : channels) {
253253
this.channelsIntended.add(channelName);
254-
this.sendRawLine("JOIN :" + channelName);
254+
this.sendRawLine("JOIN " + channelName);
255255
}
256256
}
257257

@@ -261,7 +261,7 @@ public void addKeyProtectedChannel(@Nonnull String channel, @Nonnull String key)
261261
Sanity.nullCheck(key, "Key cannot be null");
262262
Sanity.truthiness(this.serverInfo.isValidChannel(channel), "Invalid channel name " + channel);
263263
this.channelsIntended.add(channel);
264-
this.sendRawLine("JOIN :" + channel + ' ' + key);
264+
this.sendRawLine("JOIN " + channel + ' ' + key);
265265
}
266266

267267
@Override
@@ -275,7 +275,7 @@ public void addKeyProtectedChannel(@Nonnull Pair<String, String>... channelsAndK
275275
}
276276
for (Pair<String, String> channelAndKey : channelsAndKeys) {
277277
this.channelsIntended.add(channelAndKey.getLeft());
278-
this.sendRawLine("JOIN :" + channelAndKey.getLeft() + (channelAndKey.getRight() == null ? "" : (' ' + channelAndKey.getRight())));
278+
this.sendRawLine("JOIN " + channelAndKey.getLeft() + (channelAndKey.getRight() == null ? "" : (' ' + channelAndKey.getRight())));
279279
}
280280
}
281281

0 commit comments

Comments
 (0)