Permalink
Browse files

fuck parentheses

  • Loading branch information...
1 parent 07c30d8 commit b0b2c4be66b37b27c525bbf25d869ed720c14d8b @andrew12 committed Jan 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 topic.co
View
@@ -16,8 +16,8 @@ module.exports = (bot, cmds, opts, brain) ->
cmds.on \append, (str) -> brain.rpush \topic, str, topicupdate
cmds.on \topic, (str) -> brain.lset \topic, 0, str, topicupdate
cmds.on \message, (str) -> brain.lset \topic, -1, str, topicupdate
- cmds.on \set, (str) -> brain.lset \topic, i, str.right(), topicupdate unless isNaN(i = parseInt(str.left()))
- cmds.on \insert, (str) -> brain.linsert \topic, i, str.right(), topicupdate unless isNaN(i = parseInt(str.left()))
+ cmds.on \set, (str) -> brain.lset \topic, i, str.right(), topicupdate unless isNaN i = parseInt str.left()
+ cmds.on \insert, (str) -> brain.linsert \topic, i, str.right(), topicupdate unless isNaN i = parseInt str.left()
cmds.on \delete, cb = (str) ->
brain.lindex \topic, parseInt(str), wraperr (topic) ->
brain.lrem \topic, 0, topic, wraperr topicupdate

0 comments on commit b0b2c4b

Please sign in to comment.