Do not attempt to process '/leave' with no message
This commit is contained in:
parent
3e27e26db1
commit
61e66753a2
1 changed files with 4 additions and 2 deletions
|
@ -148,10 +148,12 @@ function core:LeaveChannel(msg)
|
|||
self.hooks[SlashCmdList].LEAVE(msg);
|
||||
|
||||
local id = gsub(msg,"%s*([^%s]+).*","%1");
|
||||
local _,name = core:GetChannelInfo(id);
|
||||
|
||||
if(strlen(id) > 0) then
|
||||
local _,name = core:GetChannelInfo(id);
|
||||
ChatSaverDB[name] = nil;
|
||||
end
|
||||
end
|
||||
|
||||
function core:ToggleChatChannel(checked,channel)
|
||||
if(ChatSaverDB[channel] == nil) then
|
||||
|
|
Loading…
Reference in a new issue