Permalink
Browse files

SPACE

  • Loading branch information...
Justin Mazzi
Justin Mazzi committed Jul 1, 2011
1 parent 4a47798 commit 1a7a30f792406d1fe0094daa5d3a5ed22671029d
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/client.coffee
View
@@ -5,11 +5,11 @@ response = new res
exports.Client = class Client
constructor: (username, password, nickname) ->
- @username = username
- @password = password
- @nickname = nickname
+ @username = username
+ @password = password
+ @nickname = nickname
@conference = "conference.#{username.split('@')[1]}"
- @rooms = []
+ @rooms = []
connect: ->
cl = new xmpp.Client jid: @username, password: @password
@@ -20,7 +20,7 @@ exports.Client = class Client
group = reply.stanza.attrs.type is 'groupchat'
if group is true
room = stanza.attrs.from.split('/')[0]
- msg = new xmpp.Element('message', {to: room, type: 'groupchat'}).c('body').t(res)
+ msg = new xmpp.Element('message', {to: room, type: 'groupchat'}).c('body').t(res)
else
msg = new xmpp.Element('message', {to: stanza.attrs.from, type: 'chat'}).c('body').t(res)
cl.send msg

0 comments on commit 1a7a30f

Please sign in to comment.