Mercurial > ~mikael > mcabber > hg
diff mcabber/src/screen.c @ 993:0759f4c7da68
Add option 'disable_chatstates'
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 01 Nov 2006 21:36:50 +0100 |
parents | b37348c2aa79 |
children | f4d6570e2628 |
line wrap: on
line diff
--- a/mcabber/src/screen.c Wed Nov 01 17:47:30 2006 +0100 +++ b/mcabber/src/screen.c Wed Nov 01 21:36:50 2006 +0100 @@ -98,6 +98,7 @@ static int chatstate; /* (0=active, 1=composing, 2=paused) */ static bool lock_chatstate; static time_t chatstate_timestamp; +int chatstates_disabled; #define MAX_KEYSEQ_LENGTH 8 @@ -1397,6 +1398,8 @@ static inline void set_chatstate(int state) { #if defined JEP0022 || defined JEP0085 + if (chatstates_disabled) + return; if (!chatmode) state = 0; if (state != chatstate) {