mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed jid_is_room()
This commit is contained in:
parent
b768296a93
commit
d87c20e666
@ -532,7 +532,7 @@ _groupchat_message_handler(xmpp_stanza_t * const stanza)
|
|||||||
Jid *jid = jid_create(room_jid);
|
Jid *jid = jid_create(room_jid);
|
||||||
|
|
||||||
// handle room broadcasts
|
// 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);
|
xmpp_stanza_t *subject = xmpp_stanza_get_child_by_name(stanza, STANZA_NAME_SUBJECT);
|
||||||
|
|
||||||
// handle subject
|
// handle subject
|
||||||
|
11
src/jid.c
11
src/jid.c
@ -178,17 +178,6 @@ create_full_room_jid(const char * const room, const char * const nick)
|
|||||||
return result;
|
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.
|
* Get the room name part of the full JID, e.g.
|
||||||
* Full JID = "test@conference.server/person"
|
* Full JID = "test@conference.server/person"
|
||||||
|
@ -41,7 +41,6 @@ Jid * jid_create_room_jid(const char * const room, const char * const nick);
|
|||||||
void jid_destroy(Jid *jid);
|
void jid_destroy(Jid *jid);
|
||||||
|
|
||||||
gboolean jid_is_valid_room_form(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,
|
char * create_full_room_jid(const char * const room,
|
||||||
const char * const nick);
|
const char * const nick);
|
||||||
char * get_room_from_full_jid(const char * const full_room_jid);
|
char * get_room_from_full_jid(const char * const full_room_jid);
|
||||||
|
Loading…
Reference in New Issue
Block a user