You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed SUP check to prevent user from adding empty values to the table, and to prevent them from adding only whitespaces or strings that accidentally end with a whitespace
Copy file name to clipboardExpand all lines: lua/msync/client_gui/modules/cl_mrsync.lua
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -71,17 +71,15 @@ function MSync.modules.MRSync.adminPanel(sheet)
71
71
allserver_button:SetPos( 275, 15 )
72
72
allserver_button:SetSize( 130, 20 )
73
73
allserver_button.DoClick=function()
74
-
ifnotallserver_textentry:GetValue() =="" andnotMSync.modules.MRSync.settings.nosync[allserver_textentry:GetValue()] andnotMSync.modules.MRSync.settings.syncall[allserver_textentry:GetValue()] then
74
+
ifstring.len(allserver_textentry:GetValue()) >0andnotMSync.modules.MRSync.settings.nosync[allserver_textentry:GetValue()] andnotMSync.modules.MRSync.settings.syncall[allserver_textentry:GetValue()] then
@@ -120,18 +118,19 @@ function MSync.modules.MRSync.adminPanel(sheet)
120
118
nosync_button:SetPos( 275, 155 )
121
119
nosync_button:SetSize( 130, 20 )
122
120
nosync_button.DoClick=function()
123
-
ifnotnosync_textentry:GetValue() =="" andnotMSync.modules.MRSync.settings.nosync[nosync_textentry:GetValue()] andnotMSync.modules.MRSync.settings.syncall[nosync_textentry:GetValue()] then
121
+
ifstring.len(nosync_textentry:GetValue()) >0andnotMSync.modules.MRSync.settings.nosync[nosync_textentry:GetValue()] andnotMSync.modules.MRSync.settings.syncall[nosync_textentry:GetValue()] then
0 commit comments