summaryrefslogtreecommitdiff
path: root/src/site.clj
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-06-24 18:52:07 -0400
committerJulie Lala <jules@okfoc.us>2014-06-24 18:52:07 -0400
commit948926970571793e774ebf34c16e14ef8e694062 (patch)
tree90250502c299fc130efbd4c54a62e3c158cb7acd /src/site.clj
parent0e9eb8b4fc0ef43f91b69749f276cadf2d3bb3ad (diff)
parentc14e6d4356a2c4d9981a6808ef19edb66fc96e51 (diff)
Merge branch 'master' of dumpfm:/pichat/repo
Diffstat (limited to 'src/site.clj')
-rw-r--r--src/site.clj6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/site.clj b/src/site.clj
index 66e880e..67bb007 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -305,7 +305,7 @@ WHERE user_id IN
; this should check if the user was created in the last day i guess
(defn ip-recently-created? [ip]
- (> (count (do-select ["select * from users where created_ip=?::cidr" (str ip)] )) 10))
+ (> (count (do-select ["select * from users where created_ip=?::cidr" (str ip)] )) 15))
(def *reserved-nicks-path* "docs/reserved_nicks.txt")
(def *reserved-nicks-refresh-period-sec* 300)
@@ -1196,6 +1196,9 @@ WHERE user_id IN
(GET "/images/*" (serve-static *image-directory* (params :*)))
(GET "/avatars/*" (serve-static *avatar-directory* (params :*)))
;; irl
+ (GET "/soccer/*" (redirect-to "/"))
+ (GET "/soccer/" (redirect-to "/"))
+ (GET "/soccer" (redirect-to "/"))
(GET "/irl" (redirect-to "/irl/"))
(GET "/irl/" (serve-static "static/319" "index.html"))
(GET "/irl/*" (serve-static "static/319" (params :*)))
@@ -1299,6 +1302,7 @@ WHERE user_id IN
(GET "/debug" (debug-page session flash))
(POST "/debug" (debug-commmand! session params))
(GET "/mutes" (show-mutes session params))
+ (GET "/users/lastlog" (show-lastlog session params))
(GET "/users" (show-users session params))
(GET "/roomlist" (show-rooms session))
(POST "/mute" (mute! session params))