Using HipChat through an IRC client with BitlBee

Here at Treehouse Agency, we love IRC, as does the rest of the Drupal community. Still, IRC ports are often blocked, and not everyone is comfortable using IRC. We've recently been using HipChat to set up chat rooms for certain new clients.

I already route most of my AIM and GTalk interaction through an IRC gateway using BitlBee, and I wanted to hook HipChat up to an IRC client as well. Here's a guide on how to do this.

Steven Merrill, Director of Devops
#Development | Posted

Here at Treehouse Agency, we love IRC, as does the rest of the Drupal community. Still, IRC ports are often blocked, and not everyone is comfortable using IRC. We've recently been using HipChat to set up chat rooms for certain new clients.

I already route most of my AIM and GTalk interaction through an IRC gateway using BitlBee, and I wanted to hook HipChat up to an IRC client as well. Here's a guide on how to do this.

(Note that I was having trouble joining channels in my LimeChat last night as I was writing this up, but I might just be missing something. Try it out!)

All the uppercase items come from the XMPP Account Settings page in your HipChat account.

  1. Add the account in Bitlbee.
    • account add jabber USERNAME@chat.hipchat.com 'PASSWORD'
  2. Before you connect, set it up so that folks' chat names will display properly.
    • account hipchat set nick_source full_name
  3. To prevent being spammed with room history every time you join or change status, set your resource to 'bot'.
    • account hipchat set resource bot
  4. Connect to the account.
    • account hipchat on
  5. At this point, you can join the &hipchat channel to see all your contacts and use /msg to start talking w/ one of them privately.
  6. Now, add a chat. Note that the information on the XMPP settings pages doesn't give you @chat.hipchat.com. You can set whatever channel name you want.
    • chat add hipchat JABBERNAME@chat.hipchat.com #CHANNELNAME
  7. Before you can join, you must set your nick to match the Room nickname setting in your XMPP settings. You must do this for every room. Use the channel name you decided on earlier for easier access.
    • channel #CHANNELNAME set nick 'ROOM NICKNAME'
  8. Now, join the channel.
  9. Start chatting!
    • Hey everybody!
    • I'm using IRC!
    • (fry)
    • /me likes IRC and HipChat
  10. When you're ready to sign out of HipChat, use account off.
    • account hipchat off

Steven Merrill

Director of Devops