From 7b8238d0c9f409deaa15147bc76fc77101cb52c3 Mon Sep 17 00:00:00 2001 From: jgeboski Date: Wed, 17 Dec 2014 12:57:17 -0500 Subject: irc-channel: implemented a special mode for show_users This allows for users to be declared as being special, which does not have any specific meaning. The meaning of being special is different from protocol-to-protocol, which many protocols do not even implement. This functionality is mainly geared towards a special user state which only some protocols may actually need to define. For example, with the third-party Steam plugin, this can be used for denoting a user which is actively playing a game. By default, this mode will not actually be used by any plugin. However, it does default to the half-operator user mode. --- irc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index 9cebc094..82c4108a 100644 --- a/irc.c +++ b/irc.c @@ -952,11 +952,11 @@ static char *set_eval_bw_compat( set_t *set, char *value ) "channel setting instead.", set->key ); if( strcmp( set->key, "away_devoice" ) == 0 && !bool2int( value ) ) - val = "online,away"; + val = "online,special%,away"; else if( strcmp( set->key, "show_offline" ) == 0 && bool2int( value ) ) - val = "online@,away+,offline"; + val = "online@,special%,away+,offline"; else - val = "online+,away"; + val = "online+,special%,away"; for( l = irc->channels; l; l = l->next ) { -- cgit v1.2.3