diff options
author | dequis <dx@dxzone.com.ar> | 2014-07-20 03:28:49 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-01-25 23:43:34 -0300 |
commit | be1efa31e01a96be922c7addba2d9207bfbdf5fc (patch) | |
tree | 7ed979bde6284ded3cf1f1c1a7a870b2a55e9d00 /protocols/nogaim.h | |
parent | 8519f457c31139750b9f7497834ac90a57196d22 (diff) |
Add handle_is_self() prpl function to fix JID mismatch confusion bugs
When bee_chat needs to check for self messages, it can call this
function to let the protocol implementation do the comparison.
In the case of jabber, sometimes the server reports a different username
after login, this one is stored in jd->internal_jid, and the one that is
used for login isn't changed
Diffstat (limited to 'protocols/nogaim.h')
-rw-r--r-- | protocols/nogaim.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/nogaim.h b/protocols/nogaim.h index c236a0b5..d1711cde 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -262,6 +262,9 @@ struct prpl { GList *(* buddy_action_list) (struct bee_user *bu); void *(* buddy_action) (struct bee_user *bu, const char *action, char * const args[], void *data); + /* If null, equivalent to handle_cmp( ic->acc->user, who ) */ + gboolean (* handle_is_self) (struct im_connection *, const char *who); + /* Some placeholders so eventually older plugins may cooperate with newer BitlBees. */ void *resv1; void *resv2; |