summaryrefslogtreecommitdiff
path: root/src/site.clj
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-05-20 13:22:43 -0400
committersostler <sbostler@gmail.com>2010-05-20 13:22:43 -0400
commitbe5ae0f99e685177d51ff82304eb525e6790ea7d (patch)
tree73e6200538c8128fd1ec8bb1c9f503643f3f1305 /src/site.clj
parentc500b9133d80d1e9757fa62237f772404e5fa298 (diff)
Enable room disabling
Diffstat (limited to 'src/site.clj')
-rw-r--r--src/site.clj9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/site.clj b/src/site.clj
index a221fb4..a472dfe 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -329,11 +329,12 @@ ORDER BY cnt DESC;
(def *piece-map*
(zipmap
- [:pawn :knight :bishop :rook :queen :king]
- ["&#9823;" "&#9822;" "&#9821;" "&#9820;" "&#9819;" "&#9818;"]))
+ [:pawn :knight :bishop :rook :queen :king :skull]
+ ["&#9823;" "&#9822;" "&#9821;" "&#9820;" "&#9819;" "&#9818;" "&#9760;"]))
(defn score-to-piece [score]
- (cond (= score 0) :pawn
+ (cond (= score -1) :skull
+ (= score 0) :pawn
(< score 50) :knight
(< score 150) :bishop
(< score 300) :rook
@@ -388,7 +389,7 @@ ORDER BY created_on DESC;
has-avatar (non-empty-string? (user-info :avatar))
offset (maybe-parse-int offset 0)
score (if (= (lower-case profile-nick) "scottbot")
- 9999
+ -1
(or ((poll *user-scores*) profile-nick) 0))
dump-offset (* offset *dumps-per-page*)
raw-dumps (logger tags/fetch-dumps-by-nick