1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Removed jid_is_room()

This commit is contained in:
James Booth 2013-01-13 18:06:29 +00:00
parent b768296a93
commit d87c20e666
3 changed files with 1 additions and 13 deletions

View File

@ -532,7 +532,7 @@ _groupchat_message_handler(xmpp_stanza_t * const stanza)
Jid *jid = jid_create(room_jid);
// handle room broadcasts
if (jid_is_room(room_jid)) {
if (jid->resourcepart == NULL) {
xmpp_stanza_t *subject = xmpp_stanza_get_child_by_name(stanza, STANZA_NAME_SUBJECT);
// handle subject

View File

@ -178,17 +178,6 @@ create_full_room_jid(const char * const room, const char * const nick)
return result;
}
/*
* Returns TRUE if the JID is a room JID
* The test is that the passed JID does not contain a "/"
*/
gboolean
jid_is_room(const char * const room_jid)
{
gchar *result = g_strrstr(room_jid, "/");
return (result == NULL);
}
/*
* Get the room name part of the full JID, e.g.
* Full JID = "test@conference.server/person"

View File

@ -41,7 +41,6 @@ Jid * jid_create_room_jid(const char * const room, const char * const nick);
void jid_destroy(Jid *jid);
gboolean jid_is_valid_room_form(Jid *jid);
gboolean jid_is_room(const char * const room_jid);
char * create_full_room_jid(const char * const room,
const char * const nick);
char * get_room_from_full_jid(const char * const full_room_jid);