mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Renamed roster_barejid_from_handle -> roster_barejid_from_name
This commit is contained in:
parent
8e4dd4b80f
commit
f4a3dd84ea
@ -1973,7 +1973,7 @@ _cmd_msg(gchar **args, struct cmd_help_t help)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
char *usr_jid = roster_barejid_from_handle(usr);
|
char *usr_jid = roster_barejid_from_name(usr);
|
||||||
if (msg != NULL) {
|
if (msg != NULL) {
|
||||||
message_send(msg, usr_jid);
|
message_send(msg, usr_jid);
|
||||||
ui_outgoing_msg("me", usr_jid, msg);
|
ui_outgoing_msg("me", usr_jid, msg);
|
||||||
@ -2105,7 +2105,7 @@ _cmd_status(gchar **args, struct cmd_help_t help)
|
|||||||
break;
|
break;
|
||||||
case WIN_CONSOLE:
|
case WIN_CONSOLE:
|
||||||
if (usr != NULL) {
|
if (usr != NULL) {
|
||||||
usr_jid = roster_barejid_from_handle(usr);
|
usr_jid = roster_barejid_from_name(usr);
|
||||||
if (usr_jid == NULL) {
|
if (usr_jid == NULL) {
|
||||||
usr_jid = usr;
|
usr_jid = usr;
|
||||||
}
|
}
|
||||||
@ -2178,7 +2178,7 @@ _cmd_info(gchar **args, struct cmd_help_t help)
|
|||||||
break;
|
break;
|
||||||
case WIN_CONSOLE:
|
case WIN_CONSOLE:
|
||||||
if (usr != NULL) {
|
if (usr != NULL) {
|
||||||
usr_jid = roster_barejid_from_handle(usr);
|
usr_jid = roster_barejid_from_name(usr);
|
||||||
if (usr_jid == NULL) {
|
if (usr_jid == NULL) {
|
||||||
usr_jid = usr;
|
usr_jid = usr;
|
||||||
}
|
}
|
||||||
|
@ -62,8 +62,8 @@ message_send(const char * const msg, const char * const recipient)
|
|||||||
{
|
{
|
||||||
const char * jid = NULL;
|
const char * jid = NULL;
|
||||||
|
|
||||||
if (roster_barejid_from_handle(recipient) != NULL) {
|
if (roster_barejid_from_name(recipient) != NULL) {
|
||||||
jid = roster_barejid_from_handle(recipient);
|
jid = roster_barejid_from_name(recipient);
|
||||||
} else {
|
} else {
|
||||||
jid = recipient;
|
jid = recipient;
|
||||||
}
|
}
|
||||||
|
@ -79,9 +79,9 @@ roster_request(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
roster_barejid_from_handle(const char * const handle)
|
roster_barejid_from_name(const char * const name)
|
||||||
{
|
{
|
||||||
return g_hash_table_lookup(name_to_barejid, handle);
|
return g_hash_table_lookup(name_to_barejid, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -142,6 +142,6 @@ gboolean roster_add(const char * const barejid, const char * const name,
|
|||||||
const char * const subscription, const char * const offline_message,
|
const char * const subscription, const char * const offline_message,
|
||||||
gboolean pending_out);
|
gboolean pending_out);
|
||||||
void roster_change_handle(const char * const barejid, const char * const handle);
|
void roster_change_handle(const char * const barejid, const char * const handle);
|
||||||
char * roster_barejid_from_handle(const char * const handle);
|
char * roster_barejid_from_name(const char * const name);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user