Skip to content

Commit

Permalink
Merge pull request hubotio#55 from codec/xmpp-muc
Browse files Browse the repository at this point in the history
modified groupchat presence to set the actual botname, not the jid
  • Loading branch information
atmos committed Oct 26, 2011
2 parents 9a3aa3e + d3f141e commit 8a0351c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hubot/xmpp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class XmppBot extends Robot
# join each room
# http://xmpp.org/extensions/xep-0045.html for XMPP chat standard
for room in @options.rooms
@client.send(new Xmpp.Element('presence', to: "#{room}/#{@options.username}" )
@client.send(new Xmpp.Element('presence', to: "#{room}/#{@name}" )
.c('x', xmlns: 'http://jabber.org/protocol/muc' )
.c('history', seconds: 1 )) # prevent the server from confusing us with old messages
# and it seems that servers don't reliably support maxchars
Expand Down

0 comments on commit 8a0351c

Please sign in to comment.