Skip to content

Commit 3cc1a3c

Browse files
Bugfix #36
Fixed a SUP verification method that prevents a user from adding a empty value to the MRSync lists.
1 parent 1feb1dc commit 3cc1a3c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lua/msync/client_gui/modules/cl_mrsync.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MSync.modules.MRSync = MSync.modules.MRSync or {}
66
* @package MySQL Rank Sync
77
* @author Aperture Development
88
* @license root_dir/LICENCE
9-
* @version 2.0.0
9+
* @version 2.0.2
1010
]]
1111

1212
--[[
@@ -16,7 +16,7 @@ MSync.modules.MRSync.info = {
1616
Name = "MySQL Rank Sync",
1717
ModuleIdentifier = "MRSync",
1818
Description = "Synchronise your ranks across your servers",
19-
Version = "2.0.0"
19+
Version = "2.0.2"
2020
}
2121

2222
--[[
@@ -71,7 +71,7 @@ function MSync.modules.MRSync.adminPanel(sheet)
7171
allserver_button:SetPos( 275, 15 )
7272
allserver_button:SetSize( 130, 20 )
7373
allserver_button.DoClick = function()
74-
if allserver_textentry:GetValue() and not MSync.modules.MRSync.settings.nosync[allserver_textentry:GetValue()] and not MSync.modules.MRSync.settings.syncall[allserver_textentry:GetValue()] then
74+
if not allserver_textentry:GetValue() == "" and not MSync.modules.MRSync.settings.nosync[allserver_textentry:GetValue()] and not MSync.modules.MRSync.settings.syncall[allserver_textentry:GetValue()] then
7575
allserver_table:AddLine(allserver_textentry:GetValue())
7676
MSync.modules.MRSync.settings.syncall[allserver_textentry:GetValue()] = true
7777
allserver_textentry:SetText("")
@@ -120,7 +120,7 @@ function MSync.modules.MRSync.adminPanel(sheet)
120120
nosync_button:SetPos( 275, 155 )
121121
nosync_button:SetSize( 130, 20 )
122122
nosync_button.DoClick = function()
123-
if nosync_textentry:GetValue() and not MSync.modules.MRSync.settings.nosync[nosync_textentry:GetValue()] and not MSync.modules.MRSync.settings.syncall[nosync_textentry:GetValue()] then
123+
if not nosync_textentry:GetValue() == "" and not MSync.modules.MRSync.settings.nosync[nosync_textentry:GetValue()] and not MSync.modules.MRSync.settings.syncall[nosync_textentry:GetValue()] then
124124
nosync_table:AddLine(nosync_textentry:GetValue())
125125
MSync.modules.MRSync.settings.nosync[nosync_textentry:GetValue()] = true
126126
nosync_textentry:SetText("")

lua/msync/server/modules/sv_mrsync.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MSync.modules.MRSync = MSync.modules.MRSync or {}
66
* @package MySQL Rank Sync
77
* @author Aperture Development
88
* @license root_dir/LICENCE
9-
* @version 2.0.1
9+
* @version 2.0.2
1010
]]
1111

1212
--[[
@@ -16,7 +16,7 @@ MSync.modules.MRSync.info = {
1616
Name = "MySQL Rank Sync",
1717
ModuleIdentifier = "MRSync",
1818
Description = "Synchronise your ranks across your servers",
19-
Version = "2.0.1"
19+
Version = "2.0.2"
2020
}
2121

2222
--[[

0 commit comments

Comments
 (0)