summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chat.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/chat.lua b/chat.lua
index 2640ecc..a34086b 100644
--- a/chat.lua
+++ b/chat.lua
@@ -76,14 +76,15 @@ local function draw_lb(W,scores)
end
end
+
+-- scoring
+
local function score(msg)
local s = 0
for num in msg:gmatch"%-?%d+" do s=s+num end
return s
end
-
-
local userscores = setmetatable({
aaa=10,
bbb=100,