mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 17:53:13 +02:00
Rename command /silence to /mute
This commit is contained in:
+6
-6
@@ -50,8 +50,8 @@ char *gui_chat_buffer = NULL; /* buffer for printf */
|
||||
char *gui_chat_prefix[GUI_CHAT_NUM_PREFIXES]; /* prefixes */
|
||||
char gui_chat_prefix_empty[] = ""; /* empty prefix */
|
||||
int gui_chat_time_length = 0; /* length of time for each line (in chars) */
|
||||
int gui_chat_silent = GUI_CHAT_SILENT_DISABLED; /* silence mode */
|
||||
struct t_gui_buffer *gui_chat_silent_buffer = NULL; /* buffer for silence */
|
||||
int gui_chat_mute = GUI_CHAT_MUTE_DISABLED; /* mute mode */
|
||||
struct t_gui_buffer *gui_chat_mute_buffer = NULL; /* mute buffer */
|
||||
|
||||
|
||||
/*
|
||||
@@ -455,10 +455,10 @@ gui_chat_printf_date_tags (struct t_gui_buffer *buffer, time_t date,
|
||||
return;
|
||||
}
|
||||
|
||||
/* if silent is enabled for buffer (or all buffers), then just return */
|
||||
if ((gui_chat_silent == GUI_CHAT_SILENT_ALL_BUFFERS)
|
||||
|| ((gui_chat_silent == GUI_CHAT_SILENT_BUFFER)
|
||||
&& (gui_chat_silent_buffer == buffer)))
|
||||
/* if mute is enabled for buffer (or all buffers), then just return */
|
||||
if ((gui_chat_mute == GUI_CHAT_MUTE_ALL_BUFFERS)
|
||||
|| ((gui_chat_mute == GUI_CHAT_MUTE_BUFFER)
|
||||
&& (gui_chat_mute_buffer == buffer)))
|
||||
return;
|
||||
|
||||
if (!gui_chat_buffer)
|
||||
|
||||
+6
-6
@@ -42,18 +42,18 @@ enum t_gui_chat_prefix
|
||||
GUI_CHAT_NUM_PREFIXES,
|
||||
};
|
||||
|
||||
enum t_gui_chat_silent
|
||||
enum t_gui_chat_mute
|
||||
{
|
||||
GUI_CHAT_SILENT_DISABLED = 0,
|
||||
GUI_CHAT_SILENT_BUFFER,
|
||||
GUI_CHAT_SILENT_ALL_BUFFERS,
|
||||
GUI_CHAT_MUTE_DISABLED = 0,
|
||||
GUI_CHAT_MUTE_BUFFER,
|
||||
GUI_CHAT_MUTE_ALL_BUFFERS,
|
||||
};
|
||||
|
||||
extern char *gui_chat_prefix[GUI_CHAT_NUM_PREFIXES];
|
||||
extern char gui_chat_prefix_empty[];
|
||||
extern int gui_chat_time_length;
|
||||
extern int gui_chat_silent;
|
||||
extern struct t_gui_buffer *gui_chat_silent_buffer;
|
||||
extern int gui_chat_mute;
|
||||
extern struct t_gui_buffer *gui_chat_mute_buffer;
|
||||
|
||||
/* chat functions */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user