File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ MSync.modules.SampleModule.info = {
2323 Define mysql table and additional functions that are later used
2424]]
2525function MSync .modules .SampleModule .init ( transaction )
26- transaction :addQuery ( [[
26+ transaction :addQuery ( MSync . DBServer : query ( [[
2727 CREATE TABLE IF NOT EXISTS `tbl_SampleModule` (
2828 SampleData INT
2929 );
30- ]] )
30+ ]] ))
3131
32- function MSync .Modules .SampleModule .SampleFunction ()
32+ function MSync .modules .SampleModule .SampleFunction ()
3333 return true
3434 end
3535
Original file line number Diff line number Diff line change 6868util .AddNetworkString (" msync.sendSettings" )
6969net .Receive (" msync.sendSettings" , function (len , ply )
7070 if not ply :query (" msync.sendSettings" ) then return end
71-
71+
72+ local password = MSync .settings .data .mysql .password
7273 MSync .settings .data = net .ReadTable ()
74+
75+ if not MSync .settings .data .mysql .password then
76+ MSync .settings .data .mysql .password = password
77+ end
78+
7379 MSync .func .saveSettings ()
7480end )
7581
You can’t perform that action at this time.
0 commit comments