aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-11-24 18:02:39 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2007-11-24 18:02:39 +0000
commit608f8cf652d0c443ef551ac979bd46096b361663 (patch)
tree574b4f76205e60a837656d02cb517fdf46f752af /protocols/jabber/jabber.h
parent3a80471931642374f323e284ce3a5a04b5635a96 (diff)
Added some random hash to the id= for cached XMPP packets so that packets
from other BitlBees won't be picked up accidentally. Might also want to randomize the per-packet IDs because they're still predictable.
Diffstat (limited to 'protocols/jabber/jabber.h')
-rw-r--r--protocols/jabber/jabber.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/jabber/jabber.h b/protocols/jabber/jabber.h
index e26c3899..fc9d2fc4 100644
--- a/protocols/jabber/jabber.h
+++ b/protocols/jabber/jabber.h
@@ -77,6 +77,7 @@ struct jabber_data
struct jabber_away_state *away_state;
char *away_message;
+ char *cached_id_prefix;
GHashTable *node_cache;
GHashTable *buddies;
};
@@ -131,7 +132,9 @@ struct jabber_chat
/* Prefixes to use for packet IDs (mainly for IQ packets ATM). Usually the
first one should be used, but when storing a packet in the cache, a
"special" kind of ID is assigned to make it easier later to figure out
- if we have to do call an event handler for the response packet. */
+ if we have to do call an event handler for the response packet. Also
+ we'll append a hash to make sure we won't trigger on cached packets from
+ other BitlBee users. :-) */
#define JABBER_PACKET_ID "BeeP"
#define JABBER_CACHED_ID "BeeC"