mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Removed all whitespaces (using new script)
This commit is contained in:
@ -104,7 +104,7 @@ function msg_meta:fromRFC1459(line)
|
||||
local pos
|
||||
self.command, pos = line:match("(%S+)()")
|
||||
-- /MFF BEGIN
|
||||
if not pos then
|
||||
if not pos then
|
||||
minetest.log("error", "[IRC] This crash message was intended to see the value of a breaking variable. line = " .. (line or "nil"))
|
||||
return
|
||||
end
|
||||
|
@ -13,7 +13,7 @@ end
|
||||
function set:add(connection)
|
||||
local socket = connection.socket
|
||||
insert(self.sockets, socket)
|
||||
|
||||
|
||||
self.connections[socket] = connection
|
||||
insert(self.connections, connection)
|
||||
end
|
||||
@ -32,13 +32,13 @@ end
|
||||
|
||||
function set:select()
|
||||
local read, write, err = select(self.sockets, nil, self.timeout)
|
||||
|
||||
|
||||
if read then
|
||||
for k, socket in ipairs(read) do
|
||||
read[k] = self.connections[socket]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return read, err
|
||||
end
|
||||
|
||||
|
18
other_things/scripts/remove_whitespaces.sh
Executable file
18
other_things/scripts/remove_whitespaces.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Script to remove whitespaces from our repository's lua files
|
||||
# Script ßý LeMagnesium, 2015
|
||||
# (Note: You need this : https://github.com/LeMagnesium/mucro )
|
||||
|
||||
# Go to repo root
|
||||
mydir="`dirname "$0"`"
|
||||
test -d "$mydir" && cd "$mydir/../../"
|
||||
|
||||
# Get all lua file's names
|
||||
luafiles=$(mucro '.lua'$ -r . -b)
|
||||
sed -i 's/[ \t]*$//' $luafiles
|
||||
|
||||
# Done
|
||||
echo `git status`
|
||||
echo "Done"
|
||||
|
||||
#EOF
|
Reference in New Issue
Block a user