Skip to content

Commit

Permalink
Mailalert now notices users instead of messaging a channel. Stfu Chou…
Browse files Browse the repository at this point in the history
…suke. :)
  • Loading branch information
Raynes committed Apr 15, 2010
1 parent e5a15dc commit 2da68a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sexpbot/plugins/mail.clj
Expand Up @@ -37,8 +37,8 @@
(let [lower-sender (.toLowerCase sender)
nmess (count-messages lower-sender)]
(when (and (> nmess 0) (alert-time? lower-sender))
(.sendMessage bot channel (str sender ": You have " nmess
" new messages. Type $getmessages to see them."))
(.sendNotice sender channel (str sender ": You have " nmess
" new message(s). Type $getmessages (in PM if you want) to see them."))
(dosync (alter alerted assoc lower-sender (now))))))

(defmethod respond :getmessages [{:keys [bot sender]}]
Expand Down

0 comments on commit 2da68a7

Please sign in to comment.