Mercurial > pidgin.yaz
diff libpurple/protocols/qq/qq_define.c @ 24079:1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
* Update qun conversation
* Drop group_conv.c and group_conv.h
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 14:58:32 +0000 |
parents | dbc7a9742f8d |
children | 7c0a56c5fea0 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq_define.c Wed Oct 22 14:55:09 2008 +0000 +++ b/libpurple/protocols/qq/qq_define.c Wed Oct 22 14:58:32 2008 +0000 @@ -245,3 +245,18 @@ return "Unknown Room Command"; } } + +/* check if status means online or offline */ +gboolean is_online(guint8 status) +{ + switch(status) { + case QQ_BUDDY_ONLINE_NORMAL: + case QQ_BUDDY_ONLINE_AWAY: + case QQ_BUDDY_ONLINE_INVISIBLE: + case QQ_BUDDY_ONLINE_BUSY: + return TRUE; + case QQ_BUDDY_CHANGE_TO_OFFLINE: + return FALSE; + } + return FALSE; +}