Permalink
Browse files

NO U

  • Loading branch information...
1 parent f344f3a commit 278493ee3ddb4d049e9219a197beab2421110c0e @gf3 gf3 committed Dec 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 protobot.js
View
2 protobot.js
@@ -179,7 +179,7 @@ bot = jerk( function( j ) {
})
// Redis
- j.watch_for( /^(?:david_mark|protobot|bot\-t)[,:]? (\w+) is[,:]? (.+)$/, function( message ) {
+ j.watch_for( /^(?:david_mark|protobot|bot\-t)[,:]? ([-_.:|\/\\\w]+) is[,:]? (.+)$/, function( message ) {
rclient.hmset( 'triggers', message.match_data[1], message.match_data[2], function( err ) {
if ( err )
message.say( message.user + ': Oops, there was an error: ' + err )

0 comments on commit 278493e

Please sign in to comment.