Commit 229d8055 authored by Maximilian Grüttemeier's avatar Maximilian Grüttemeier
Browse files

Fixed bug causing Unban not to work

- A bug caused the unban functionality not to work
parent 11dc5993
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1319,7 +1319,7 @@ MSync.modules[info.ModuleIdentifier].net = function()
        end

        net.Start("msync."..info.ModuleIdentifier..".unban")
            net.WriteInt(userid)
            net.WriteFloat(userid)
        net.SendToServer()
    end
    --[[
@@ -1327,7 +1327,10 @@ MSync.modules[info.ModuleIdentifier].net = function()
        Returns: nothing
    ]]
    net.Receive( "msync."..info.ModuleIdentifier..".sendMessage", function( len, ply )
        local type = net.ReadFloat()
        if type == 0 then
            chat.AddText( Color( 237, 135, 26 ), "[MBSync] ", Color( 255, 255, 255), net.ReadString())
        end
    end )

    --[[
+2 −2
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ MSync.modules[info.ModuleIdentifier].init = function( transaction )
        ]] )
        unBanUserIdQ:setString(1, calling_ply:SteamID())
        unBanUserIdQ:setString(2, calling_ply:SteamID64())
        unBanUserIdQ:setString(3, banId)
        unBanUserIdQ:setNumber(3, banId)

        unBanUserIdQ.onSuccess = function( q, data )
            MSync.modules[info.ModuleIdentifier].getActiveBans()
@@ -671,7 +671,7 @@ MSync.modules[info.ModuleIdentifier].net = function()
    net.Receive("msync."..info.ModuleIdentifier..".unban", function(len, ply)
        if not ply:query("msync."..info.ModuleIdentifier..".unBanID") then return end

        local banid = net.ReadInt()
        local banid = net.ReadFloat()

        --[[
            Error check and fill in of default data