Skip to content

Commit

Permalink
Merge pull request #260 from pvoisin/register-example-fix
Browse files Browse the repository at this point in the history
Fixing "register" case in `examples/c2s.js`
  • Loading branch information
lloydwatkin committed Dec 20, 2014
2 parents 472cf09 + 6515fdb commit 968fd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/c2s.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ c2s.on('connect', function(client) {
// That's the way you add mods to a given server.

// Allows the developer to register the jid against anything they want
c2s.on('register', function(opts, cb) {
client.on('register', function(opts, cb) {
console.log('REGISTER')
cb(true)
})
Expand Down

0 comments on commit 968fd3b

Please sign in to comment.