mirror of git://git.psyced.org/git/psyced
two minor runtime errors
This commit is contained in:
parent
2e459558f5
commit
95fbeacb35
|
@ -672,12 +672,13 @@ iq(XMLNode node) {
|
||||||
case "jabber:iq:roster":
|
case "jabber:iq:roster":
|
||||||
switch(node["@type"]) {
|
switch(node["@type"]) {
|
||||||
case "get":
|
case "get":
|
||||||
// TODO: this assumes that to is unset and the query is
|
// TODO: this assumes that 'to' is unset and the query is
|
||||||
// to itself
|
// to itself. we sometimes get here without a valid tag -
|
||||||
|
// what should we do then?
|
||||||
hasroster = 1;
|
hasroster = 1;
|
||||||
packet = sprintf("<iq type='result' to='%s' id='%s'>"
|
packet = sprintf("<iq type='result' to='%s' id='%s'>"
|
||||||
"<query xmlns='jabber:iq:roster'>",
|
"<query xmlns='jabber:iq:roster'>",
|
||||||
myjid, tag);
|
myjid, stringp(tag)? tag: "");
|
||||||
// TODO: listAcq does the same basically
|
// TODO: listAcq does the same basically
|
||||||
foreach (friend : ppl) {
|
foreach (friend : ppl) {
|
||||||
mixed *u;
|
mixed *u;
|
||||||
|
|
|
@ -1777,7 +1777,7 @@ quit(immediate, variant) {
|
||||||
int stayinalive = 0;
|
int stayinalive = 0;
|
||||||
|
|
||||||
// so, SUBSCRIBE_PERMANENT won't work for now.
|
// so, SUBSCRIBE_PERMANENT won't work for now.
|
||||||
if (sizeof(v("subscriptions")) && widthof(v("subscriptions"))) {
|
if (mappingp(v("subscriptions")) && sizeof(v("subscriptions")) && widthof(v("subscriptions"))) {
|
||||||
foreach (o, s : places) {
|
foreach (o, s : places) {
|
||||||
P3(("Stay in %O, %O?\n", o, s))
|
P3(("Stay in %O, %O?\n", o, s))
|
||||||
if (v("subscriptions")[lower_case(s)] != SUBSCRIBE_PERMANENT)
|
if (v("subscriptions")[lower_case(s)] != SUBSCRIBE_PERMANENT)
|
||||||
|
|
Loading…
Reference in New Issue