[OTR-dev] user has stopped OTR message
Evan Schoenberg
evan.s at dreskin.net
Sun Jan 30 14:20:34 EST 2005
That's what I would have replied if you hadn't beat me to it. :)
On Jan 30, 2005, at 10:16 AM, Ian Goldberg wrote:
>
> Ah, never mind. I think this should do it:
>
> static int is_logged_in_cb(void *opdata, const char *accountname,
> const char *protocol, const char *recipient)
> {
> GaimAccount *account;
> GaimBuddy *buddy;
>
> account = gaim_accounts_find(accountname, protocol);
> if (!account) return -1;
>
> buddy = gaim_find_buddy(account, recipient);
> if (!buddy) return -1;
>
> return (buddy->present == GAIM_BUDDY_ONLINE);
> }
>
> - Ian
> _______________________________________________
> OTR-dev mailing list
> OTR-dev at lists.cypherpunks.ca
> http://lists.cypherpunks.ca/mailman/listinfo/otr-dev
>
More information about the OTR-dev
mailing list