mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Removed debug messages when setting roles/affiliations
This commit is contained in:
parent
77674beb7e
commit
0cc25e1b76
@ -205,12 +205,6 @@ handle_room_role_set_error(const char * const room, const char * const nick, con
|
||||
ui_handle_room_role_set_error(room, nick, role, error);
|
||||
}
|
||||
|
||||
void
|
||||
handle_room_role_set(const char * const room, const char * const nick, const char * const role)
|
||||
{
|
||||
ui_handle_room_role_set(room, nick, role);
|
||||
}
|
||||
|
||||
void
|
||||
handle_room_role_list_result_error(const char * const room, const char * const role, const char * const error)
|
||||
{
|
||||
@ -232,12 +226,6 @@ handle_room_affiliation_set_error(const char * const room, const char * const ji
|
||||
ui_handle_room_affiliation_set_error(room, jid, affiliation, error);
|
||||
}
|
||||
|
||||
void
|
||||
handle_room_affiliation_set(const char * const room, const char * const jid, const char * const affiliation)
|
||||
{
|
||||
ui_handle_room_affiliation_set(room, jid, affiliation);
|
||||
}
|
||||
|
||||
void
|
||||
handle_disco_items(GSList *items, const char *jid)
|
||||
{
|
||||
|
@ -64,12 +64,10 @@ void handle_room_affiliation_list_result_error(const char * const room, const ch
|
||||
void handle_room_affiliation_list(const char * const room, const char * const affiliation, GSList *jids);
|
||||
void handle_room_affiliation_set_error(const char * const room, const char * const jid, const char * const affiliation,
|
||||
const char * const error);
|
||||
void handle_room_affiliation_set(const char * const room, const char * const jid, const char * const affiliation);
|
||||
void handle_room_role_list_result_error(const char * const from, const char * const role, const char * const error);
|
||||
void handle_room_role_list(const char * const from, const char * const role, GSList *nicks);
|
||||
void handle_room_role_set_error(const char * const room, const char * const nick, const char * const role,
|
||||
const char * const error);
|
||||
void handle_room_role_set(const char * const from, const char * const nick, const char * const role);
|
||||
void handle_room_kick_result_error(const char * const room, const char * const nick, const char * const error);
|
||||
void handle_incoming_message(char *from, char *message, gboolean priv);
|
||||
void handle_delayed_message(char *from, char *message, GTimeVal tv_stamp,
|
||||
|
@ -2043,15 +2043,6 @@ _ui_handle_room_affiliation_set_error(const char * const room, const char * cons
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_handle_room_affiliation_set(const char * const room, const char * const jid, const char * const affiliation)
|
||||
{
|
||||
ProfWin *window = wins_get_by_recipient(room);
|
||||
if (window) {
|
||||
win_save_vprint(window, '!', NULL, 0, 0, "", "Affiliation for %s set: %s", jid, affiliation);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_handle_room_role_set_error(const char * const room, const char * const nick, const char * const role,
|
||||
const char * const error)
|
||||
@ -2062,15 +2053,6 @@ _ui_handle_room_role_set_error(const char * const room, const char * const nick,
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_handle_room_role_set(const char * const room, const char * const nick, const char * const role)
|
||||
{
|
||||
ProfWin *window = wins_get_by_recipient(room);
|
||||
if (window) {
|
||||
win_save_vprint(window, '!', NULL, 0, 0, "", "Role for %s set: %s", nick, role);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_status(void)
|
||||
{
|
||||
@ -3135,7 +3117,6 @@ ui_init_module(void)
|
||||
ui_handle_room_affiliation_list_error = _ui_handle_room_affiliation_list_error;
|
||||
ui_handle_room_affiliation_list = _ui_handle_room_affiliation_list;
|
||||
ui_handle_room_affiliation_set_error = _ui_handle_room_affiliation_set_error;
|
||||
ui_handle_room_affiliation_set = _ui_handle_room_affiliation_set;
|
||||
ui_handle_room_kick_error = _ui_handle_room_kick_error;
|
||||
ui_room_destroyed = _ui_room_destroyed;
|
||||
ui_room_kicked = _ui_room_kicked;
|
||||
@ -3144,7 +3125,6 @@ ui_init_module(void)
|
||||
ui_room_member_kicked = _ui_room_member_kicked;
|
||||
ui_room_member_banned = _ui_room_member_banned;
|
||||
ui_handle_room_role_set_error = _ui_handle_room_role_set_error;
|
||||
ui_handle_room_role_set = _ui_handle_room_role_set;
|
||||
ui_handle_room_role_list_error = _ui_handle_room_role_list_error;
|
||||
ui_handle_room_role_list = _ui_handle_room_role_list;
|
||||
ui_muc_roster = _ui_muc_roster;
|
||||
|
@ -199,10 +199,8 @@ void (*ui_handle_room_affiliation_list_error)(const char * const room, const cha
|
||||
void (*ui_handle_room_affiliation_list)(const char * const room, const char * const affiliation, GSList *jids);
|
||||
void (*ui_handle_room_affiliation_set_error)(const char * const room, const char * const jid,
|
||||
const char * const affiliation, const char * const error);
|
||||
void (*ui_handle_room_affiliation_set)(const char * const room, const char * const jid, const char * const affiliation);
|
||||
void (*ui_handle_room_role_set_error)(const char * const room, const char * const nick, const char * const role,
|
||||
const char * const error);
|
||||
void (*ui_handle_room_role_set)(const char * const room, const char * const nick, const char * const role);
|
||||
void (*ui_handle_room_role_list_error)(const char * const room, const char * const role, const char * const error);
|
||||
void (*ui_handle_room_role_list)(const char * const room, const char * const role, GSList *nicks);
|
||||
void (*ui_handle_room_kick_error)(const char * const room, const char * const nick, const char * const error);
|
||||
|
@ -892,8 +892,6 @@ static int _room_affiliation_set_result_handler(xmpp_conn_t * const conn, xmpp_s
|
||||
char *error_message = stanza_get_error_message(stanza);
|
||||
handle_room_affiliation_set_error(from, affiliation_set->item, affiliation_set->privilege, error_message);
|
||||
free(error_message);
|
||||
} else {
|
||||
handle_room_affiliation_set(from, affiliation_set->item, affiliation_set->privilege);
|
||||
}
|
||||
|
||||
free(affiliation_set->item);
|
||||
@ -922,8 +920,6 @@ static int _room_role_set_result_handler(xmpp_conn_t * const conn, xmpp_stanza_t
|
||||
char *error_message = stanza_get_error_message(stanza);
|
||||
handle_room_role_set_error(from, role_set->item, role_set->privilege, error_message);
|
||||
free(error_message);
|
||||
} else {
|
||||
handle_room_role_set(from, role_set->item, role_set->privilege);
|
||||
}
|
||||
|
||||
free(role_set->item);
|
||||
|
Loading…
Reference in New Issue
Block a user