aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-04-20 22:18:40 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2007-04-20 22:18:40 -0700
commitdf1fb67d1dbf52d138f63e0d917dda2412d4fc0b (patch)
tree866ffc05c6a60b39213ea85c1f4bdf5642ebb30f /protocols/jabber/jabber.c
parent17fa798247bf1a9b18de2c4848039f940d819f31 (diff)
Consistency; Using OPT_T(YP|HINK)ING for outgoing typing notfication crap
too.
Diffstat (limited to 'protocols/jabber/jabber.c')
-rw-r--r--protocols/jabber/jabber.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c
index c38be72e..edad5dbd 100644
--- a/protocols/jabber/jabber.c
+++ b/protocols/jabber/jabber.c
@@ -357,12 +357,12 @@ static int jabber_send_typing( struct im_connection *ic, char *who, int typing )
char *type;
int st;
- if( typing == 0 )
- type = "active";
- else if( typing == 2 )
- type = "paused";
- else /* if( typing == 1 ) */
+ if( typing & OPT_TYPING )
type = "composing";
+ else if( typing & OPT_THINKING )
+ type = "paused";
+ else
+ type = "active";
node = xt_new_node( type, NULL, NULL );
xt_add_attr( node, "xmlns", XMLNS_CHATSTATES );