diff --git a/main.go b/main.go index d3398b5..1000705 100644 --- a/main.go +++ b/main.go @@ -20,11 +20,11 @@ type Client struct { } var ( - bot *tb.Bot - clients map[uint32]*Client - paused bool = true - forcePaused bool = true - forcePausedBy string + bot *tb.Bot + clients map[uint32]*Client + paused bool = true + forcePaused bool = true + pausedBy string githash string buildstamp string @@ -204,11 +204,11 @@ func main() { if sp.Message == "!unpause" { logInfoDebug("AdminPacketServerChat : Unpausing") forcePaused = false - forcePausedBy = clients[sp.ClientID].Name + pausedBy = clients[sp.ClientID].Name } else if sp.Message == "!pause" { logInfoDebug("AdminPacketServerChat : Pausing") forcePaused = true - forcePausedBy = clients[sp.ClientID].Name + pausedBy = clients[sp.ClientID].Name } else { logInfoDebug("AdminPacketServerChat :\n- ActionID: %d\n- DestinationID: %d\n- ClientID: %d\n- Message: %s\n- Amount: %d", sp.ActionID, sp.DestinationID, sp.ClientID, sp.Message, sp.Amount) }