Add password for joining channels in whosniffer
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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))
|
||||
JoinPermanentChannel(channel)
|
||||
if password then
|
||||
JoinPermanentChannel(channel, password)
|
||||
else
|
||||
JoinPermanentChannel(channel)
|
||||
end
|
||||
end
|
||||
channelId = GetChannelId(channel)
|
||||
aura_env.channelId = channelId
|
||||
|
Reference in New Issue
Block a user