mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 23:06:21 +00:00
Added /inpblock command
This commit is contained in:
@@ -999,6 +999,7 @@ _cons_show_ui_prefs(void)
|
||||
cons_privileges_setting();
|
||||
cons_titlebar_setting();
|
||||
cons_presence_setting();
|
||||
cons_inpblock_setting();
|
||||
|
||||
cons_alert();
|
||||
}
|
||||
@@ -1159,6 +1160,12 @@ _cons_show_chat_prefs(void)
|
||||
cons_alert();
|
||||
}
|
||||
|
||||
static void
|
||||
_cons_inpblock_setting(void)
|
||||
{
|
||||
cons_show("Input block (/inpblock) : %d milliseconds", prefs_get_inpblock());
|
||||
}
|
||||
|
||||
static void
|
||||
_cons_log_setting(void)
|
||||
{
|
||||
@@ -1677,6 +1684,7 @@ console_init_module(void)
|
||||
cons_reconnect_setting = _cons_reconnect_setting;
|
||||
cons_autoping_setting = _cons_autoping_setting;
|
||||
cons_priority_setting = _cons_priority_setting;
|
||||
cons_inpblock_setting = _cons_inpblock_setting;
|
||||
cons_show_connection_prefs = _cons_show_connection_prefs;
|
||||
cons_show_themes = _cons_show_themes;
|
||||
cons_prefs = _cons_prefs;
|
||||
|
||||
@@ -112,7 +112,7 @@ inp_win_resize(void)
|
||||
void
|
||||
inp_non_block(void)
|
||||
{
|
||||
wtimeout(inp_win, 20);
|
||||
wtimeout(inp_win, prefs_get_inpblock());
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -322,6 +322,7 @@ void (*cons_reconnect_setting)(void);
|
||||
void (*cons_autoping_setting)(void);
|
||||
void (*cons_priority_setting)(void);
|
||||
void (*cons_autoconnect_setting)(void);
|
||||
void (*cons_inpblock_setting)(void);
|
||||
void (*cons_show_contact_online)(PContact contact, Resource *resource, GDateTime *last_activity);
|
||||
void (*cons_show_contact_offline)(PContact contact, char *resource, char *status);
|
||||
void (*cons_theme_colours)(void);
|
||||
|
||||
Reference in New Issue
Block a user