Mercurial > hg
comparison mcabber/src/jabglue.c @ 194:a05d5c3876ec
[/trunk] Changeset 206 by mikael
* Default group for Jabber agents is "Jabber Agents"
* Add backward_kill_word() (bound to Ctrl-w)
author | mikael |
---|---|
date | Fri, 06 May 2005 19:57:55 +0000 |
parents | 62bc2992216b |
children | e01bf6d9b4b8 |
comparison
equal
deleted
inserted
replaced
193:5cbdcccfab29 | 194:a05d5c3876ec |
---|---|
29 #include "utils.h" | 29 #include "utils.h" |
30 | 30 |
31 #define JABBERPORT 5222 | 31 #define JABBERPORT 5222 |
32 #define JABBERSSLPORT 5223 | 32 #define JABBERSSLPORT 5223 |
33 | 33 |
34 #define JABBER_AGENT_GROUP "Jabber Agents" | |
35 | |
34 jconn jc; | 36 jconn jc; |
35 time_t LastPingTime; | 37 time_t LastPingTime; |
36 unsigned int KeepaliveDelay; | 38 unsigned int KeepaliveDelay; |
37 static int s_id = 1; // FIXME which use?? | 39 static int s_id = 1; // FIXME which use?? |
38 static int regmode, regdone; | 40 static int regmode, regdone; |
599 if (xmlnode_get_tag(y, "transport")) atype = transport; else | 601 if (xmlnode_get_tag(y, "transport")) atype = transport; else |
600 if (xmlnode_get_tag(y, "search")) atype = search; | 602 if (xmlnode_get_tag(y, "search")) atype = search; |
601 | 603 |
602 if (atype == transport) { | 604 if (atype == transport) { |
603 char *cleanjid = jidtodisp(alias); | 605 char *cleanjid = jidtodisp(alias); |
604 roster_add_user(cleanjid, NULL, NULL, ROSTER_TYPE_AGENT); | 606 roster_add_user(cleanjid, NULL, JABBER_AGENT_GROUP, |
607 ROSTER_TYPE_AGENT); | |
605 g_free(cleanjid); | 608 g_free(cleanjid); |
606 } | 609 } |
607 if (alias && name && desc) { | 610 if (alias && name && desc) { |
608 scr_LogPrint("Agent: %s / %s / %s / type=%d", | 611 scr_LogPrint("Agent: %s / %s / %s / type=%d", |
609 alias, name, desc, atype); | 612 alias, name, desc, atype); |