Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space required in room nickname for HipChat XMPP #134

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments
Open

Space required in room nickname for HipChat XMPP #134

GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I can authenticate on a HipChat server/instance via XMPPHP and send one-to-one 
messages, but I'm unable to send a message to a HipChat room, presumably 
because HipChat's room nickname requires a space. I'm using the following:

    $conn->connect();
    $conn->processUntil('session_start');
    // Enter the chatroom
    $conn->presence(NULL, "available", "<room number>@conf.hipchat.com/Bot Name");
    // Send message to chatroom - "groupchat" is required!
    $conn->message("<room name>@conf.hipchat.com", "Test!", "groupchat");
    // Leave the chatroom
    $conn->presence(NULL, "unavailable", "<room name>@conf.hipchat.com/Bot Name");
    $conn->disconnect();

I've tried Bot_Name, Bot\40Name, Bot\040Name, all to no avail. Any workarounds 
recommended when a space is required in the room nickname?

Original issue reported on code.google.com by jim.goli...@gmail.com on 6 Sep 2013 at 8:29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant