mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-15 12:02:06 +00:00
Prevent empty channel from being loaded on blacklist join
This commit is contained in:
parent
4e7dcbe7ef
commit
1b3d154055
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ function User(socket) {
|
||||||
data.name = data.name.toLowerCase();
|
data.name = data.name.toLowerCase();
|
||||||
if (data.name in Config.get("channel-blacklist")) {
|
if (data.name in Config.get("channel-blacklist")) {
|
||||||
self.kick("This channel is blacklisted.");
|
self.kick("This channel is blacklisted.");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.waitFlag(Flags.U_READY, function () {
|
self.waitFlag(Flags.U_READY, function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue