mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Added /set chanmode_verbose. patch by c0ffee.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3137 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8cd7dd313f
commit
d4d2e91f81
@ -334,7 +334,22 @@ static char *expando_cmdchar(SERVER_REC *server, void *item, int *free_ret)
|
|||||||
/* modes of current channel, if any */
|
/* modes of current channel, if any */
|
||||||
static char *expando_chanmode(SERVER_REC *server, void *item, int *free_ret)
|
static char *expando_chanmode(SERVER_REC *server, void *item, int *free_ret)
|
||||||
{
|
{
|
||||||
return !IS_CHANNEL(item) ? NULL : CHANNEL(item)->mode;
|
char *cmode;
|
||||||
|
|
||||||
|
*free_ret = FALSE;
|
||||||
|
|
||||||
|
if (!IS_CHANNEL(item))
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
if (settings_get_bool("chanmode_verbose"))
|
||||||
|
return CHANNEL(item)->mode;
|
||||||
|
|
||||||
|
*free_ret = TRUE;
|
||||||
|
cmode = g_strdup(CHANNEL(item)->mode);
|
||||||
|
if (strchr(cmode, ' ') != NULL)
|
||||||
|
*(strchr(cmode, ' ')) = 0;
|
||||||
|
|
||||||
|
return cmode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* current nickname */
|
/* current nickname */
|
||||||
@ -559,6 +574,7 @@ void expandos_init(void)
|
|||||||
#endif
|
#endif
|
||||||
settings_add_str("misc", "STATUS_OPER", "*");
|
settings_add_str("misc", "STATUS_OPER", "*");
|
||||||
settings_add_str("lookandfeel", "timestamp_format", "%H:%M");
|
settings_add_str("lookandfeel", "timestamp_format", "%H:%M");
|
||||||
|
settings_add_bool("lookandfeel", "chanmode_verbose", TRUE);
|
||||||
|
|
||||||
client_start_time = time(NULL);
|
client_start_time = time(NULL);
|
||||||
last_sent_msg = NULL; last_sent_msg_body = NULL;
|
last_sent_msg = NULL; last_sent_msg_body = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user