Add %G (halfop symbol) to the default status line.
Also change the meaning of %= in the status line so that the voice symbol is shown whether or not the user is opped. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@50 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -789,7 +789,7 @@
|
|||||||
#define DEFAULT_FORMAT_WHOLEFT_FOOTER_FSET NULL
|
#define DEFAULT_FORMAT_WHOLEFT_FOOTER_FSET NULL
|
||||||
|
|
||||||
#define DEFAULT_STATUS_FORMAT " [0;44;36m[[1;37m%T[0;44;36m][%*%@%=[0;44;37m%N%#%A[0;44;36m]%M [0;44;36m[%C%+%W[0;44;36m] %Q %H%B%F "
|
#define DEFAULT_STATUS_FORMAT " [0;44;36m[[1;37m%T[0;44;36m][%*%@%=[0;44;37m%N%#%A[0;44;36m]%M [0;44;36m[%C%+%W[0;44;36m] %Q %H%B%F "
|
||||||
#define DEFAULT_STATUS_FORMAT1 " [0;44;36m[[1;37m%T[0;44;36m][%*[1;37m%@%=[0;44;37m%N%#%A[0;44;36m]%M [0;44;36m[%C%+%W[0;44;36m] %Q %H%B%F "
|
#define DEFAULT_STATUS_FORMAT1 " [0;44;36m[[1;37m%T[0;44;36m][%*[1;37m%@%G%=[0;44;37m%N%#%A[0;44;36m]%M [0;44;36m[%C%+%W[0;44;36m] %Q %H%B%F "
|
||||||
#define DEFAULT_STATUS_FORMAT2 " %L %! %K %>%D %J[%u:%a:%f:%b:%h]"
|
#define DEFAULT_STATUS_FORMAT2 " %L %! %K %>%D %J[%u:%a:%f:%b:%h]"
|
||||||
#define DEFAULT_STATUS_FORMAT3 "BitchX by panasync "
|
#define DEFAULT_STATUS_FORMAT3 "BitchX by panasync "
|
||||||
|
|
||||||
|
|||||||
@@ -1125,19 +1125,23 @@ static char my_buffer[MY_BUFFER/2+1];
|
|||||||
static char *status_chanop(Window *window)
|
static char *status_chanop(Window *window)
|
||||||
{
|
{
|
||||||
char *text;
|
char *text;
|
||||||
if (window->current_channel && get_channel_oper(window->current_channel, window->server) &&
|
|
||||||
|
if (window->current_channel &&
|
||||||
|
get_channel_oper(window->current_channel, window->server) &&
|
||||||
(text = get_wset_string_var(window->wset, STATUS_CHANOP_WSET)))
|
(text = get_wset_string_var(window->wset, STATUS_CHANOP_WSET)))
|
||||||
return (text);
|
return text;
|
||||||
else
|
|
||||||
RETURN_EMPTY;
|
RETURN_EMPTY;
|
||||||
}
|
}
|
||||||
static char *status_halfop(Window *window)
|
static char *status_halfop(Window *window)
|
||||||
{
|
{
|
||||||
char *text;
|
char *text;
|
||||||
if (window->current_channel && get_channel_halfop(window->current_channel, window->server) &&
|
|
||||||
|
if (window->current_channel &&
|
||||||
|
get_channel_halfop(window->current_channel, window->server) &&
|
||||||
(text = get_wset_string_var(window->wset, STATUS_HALFOP_WSET)))
|
(text = get_wset_string_var(window->wset, STATUS_HALFOP_WSET)))
|
||||||
return (text);
|
return text;
|
||||||
else
|
|
||||||
RETURN_EMPTY;
|
RETURN_EMPTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1386,7 +1390,6 @@ static char *status_voice(Window *window)
|
|||||||
char *text;
|
char *text;
|
||||||
if (window->current_channel &&
|
if (window->current_channel &&
|
||||||
get_channel_voice(window->current_channel, window->server) &&
|
get_channel_voice(window->current_channel, window->server) &&
|
||||||
!get_channel_oper(window->current_channel, window->server) &&
|
|
||||||
(text = get_wset_string_var(window->wset, STATUS_VOICE_WSET)))
|
(text = get_wset_string_var(window->wset, STATUS_VOICE_WSET)))
|
||||||
return text;
|
return text;
|
||||||
RETURN_EMPTY;
|
RETURN_EMPTY;
|
||||||
|
|||||||
Reference in New Issue
Block a user