Changeset 441a67e


Ignore:
Timestamp:
2012-02-23T12:51:12Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b958cb5
Parents:
d3dd4d5
Message:

Make the error message on invalid Jabber room names (this is a FAQ by now)
a little more helpful.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    rd3dd4d5 r441a67e  
    473473static struct groupchat *jabber_chat_join_( struct im_connection *ic, const char *room, const char *nick, const char *password, set_t **sets )
    474474{
     475        struct jabber_data *jd = ic->proto_data;
     476       
    475477        if( strchr( room, '@' ) == NULL )
    476                 imcb_error( ic, "Invalid room name: %s", room );
     478                imcb_error( ic, "%s is not a valid Jabber room name. Maybe you mean %s@conference.%s?",
     479                            room, room, jd->server );
    477480        else if( jabber_chat_by_jid( ic, room ) )
    478481                imcb_error( ic, "Already present in chat `%s'", room );
Note: See TracChangeset for help on using the changeset viewer.