Skip to content

Commit

Permalink
fuck parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahherbig committed Jan 18, 2012
1 parent 07c30d8 commit b0b2c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions topic.co
Expand Up @@ -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
Expand Down

0 comments on commit b0b2c4b

Please sign in to comment.