mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Merge remote-tracking branch 'louiecaulfield/master'
This commit is contained in:
commit
8840457e19
@ -72,8 +72,10 @@ AC_CHECK_LIB([ssl], [main], [],
|
||||
[AC_MSG_ERROR([openssl is required for profanity])])
|
||||
AC_CHECK_LIB([strophe], [main], [],
|
||||
[AC_MSG_ERROR([libstrophe is required for profanity])])
|
||||
AC_CHECK_LIB([ncursesw], [main], [],
|
||||
[AC_MSG_ERROR([ncursesw is required for profanity])])
|
||||
AC_CHECK_LIB([ncursesw], [wget_wch], [],
|
||||
[AC_CHECK_LIB([ncurses],[wget_wch],
|
||||
[AC_MSG_NOTICE([ncursesw not found but trying with ncurses instead])],
|
||||
[AC_MSG_ERROR([ncurses wide character support is required for profanity])])])
|
||||
AC_CHECK_LIB([glib-2.0], [main], [],
|
||||
[AC_MSG_ERROR([glib-2.0 is required for profanity])])
|
||||
AC_CHECK_LIB([curl], [main], [],
|
||||
|
@ -954,8 +954,8 @@ _ui_outgoing_msg(const char * const from, const char * const to,
|
||||
|
||||
if (contact != NULL) {
|
||||
if (strcmp(p_contact_presence(contact), "offline") == 0) {
|
||||
const char const *show = p_contact_presence(contact);
|
||||
const char const *status = p_contact_status(contact);
|
||||
const char *show = p_contact_presence(contact);
|
||||
const char *status = p_contact_status(contact);
|
||||
win_show_status_string(window, to, show, status, NULL, "--", "offline");
|
||||
}
|
||||
}
|
||||
@ -1026,8 +1026,8 @@ _ui_room_roster(const char * const room, GList *roster, const char * const prese
|
||||
|
||||
while (roster != NULL) {
|
||||
PContact member = roster->data;
|
||||
const char const *nick = p_contact_barejid(member);
|
||||
const char const *show = p_contact_presence(member);
|
||||
const char *nick = p_contact_barejid(member);
|
||||
const char *show = p_contact_presence(member);
|
||||
|
||||
win_presence_colour_on(window, show);
|
||||
wprintw(window->win, "%s", nick);
|
||||
|
@ -261,7 +261,7 @@ _presence_join_room(Jid *jid)
|
||||
log_debug("Sending room join presence to: %s", jid->fulljid);
|
||||
xmpp_ctx_t *ctx = connection_get_ctx();
|
||||
xmpp_conn_t *conn = connection_get_conn();
|
||||
contact_presence_t presence_type =
|
||||
resource_presence_t presence_type =
|
||||
accounts_get_last_presence(jabber_get_account_name());
|
||||
const char *show = stanza_get_presence_string_from_type(presence_type);
|
||||
char *status = jabber_get_presence_message();
|
||||
@ -289,7 +289,7 @@ _presence_change_room_nick(const char * const room, const char * const nick)
|
||||
log_debug("Sending room nickname change to: %s, nick: %s", room, nick);
|
||||
xmpp_ctx_t *ctx = connection_get_ctx();
|
||||
xmpp_conn_t *conn = connection_get_conn();
|
||||
contact_presence_t presence_type =
|
||||
resource_presence_t presence_type =
|
||||
accounts_get_last_presence(jabber_get_account_name());
|
||||
const char *show = stanza_get_presence_string_from_type(presence_type);
|
||||
char *status = jabber_get_presence_message();
|
||||
|
@ -297,7 +297,7 @@ _roster_handle_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
||||
item = xmpp_stanza_get_next(item);
|
||||
}
|
||||
|
||||
contact_presence_t conn_presence =
|
||||
resource_presence_t conn_presence =
|
||||
accounts_get_login_presence(jabber_get_account_name());
|
||||
presence_update(conn_presence, NULL, 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user