Add password for joining channels in whosniffer

This commit is contained in:
2024-11-28 16:54:10 +01:00
parent 3bc59f9d73
commit 3107521c55
2 changed files with 7 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -282,6 +282,7 @@ end
-- CHANNEL fuckery
local channel = aura_env.config.channelName or "foobar"
local password = aura_env.config.channelPassword
local channelId = nil
local function GetChannelId(channelName)
@@ -298,7 +299,11 @@ end
channelId = GetChannelId(channel)
if not channelId then
print(string.format("channel %s not found, joining", channel))
if password then
JoinPermanentChannel(channel, password)
else
JoinPermanentChannel(channel)
end
end
channelId = GetChannelId(channel)
aura_env.channelId = channelId