File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ local tConfig, tChatHistory = {
14
14
sTimeFormat = " [%I:%M:%S %p] " ,
15
15
sPath = Core .GetPtokaXPath ().. " scripts/texts/" ,
16
16
iMaxLines = 100 ,
17
+ iTempProfile = 6 ,
17
18
}, { " Hi!" }
18
19
local tTickers = {
19
20
tTopics = {},
@@ -80,6 +81,7 @@ function OnTimer( iTimerID )
80
81
end
81
82
82
83
function AddHistory ( tUser , sInput , bIsCommand )
84
+ if tUser .iProfile == tConfig .iTempProfile then return false end
83
85
local sChatLine = os.date ( tConfig .sTimeFormat ).. sInput
84
86
if not ( bIsCommand and tConfig .sProfiles :find (tUser .iProfile ) ) then
85
87
table.insert ( tChatHistory , sChatLine )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function RestrictChat( sBotName, Error )
11
11
local sError = ( " <%s> %s" ):format ( sBotName , Error (" gen" , 2 ) )
12
12
return function ( tUser , sMessage , bFlag )
13
13
if not bFlag then return bFlag end
14
- if tUser .iProfile == - 1 then
14
+ if tUser .iProfile == - 1 or tUser . iProfile == 6 then
15
15
Core .SendToUser ( tUser , sError )
16
16
return true
17
17
end
You can’t perform that action at this time.
0 commit comments