mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
two minor runtime errors
This commit is contained in:
parent
2e459558f5
commit
95fbeacb35
2 changed files with 5 additions and 4 deletions
|
@ -672,12 +672,13 @@ iq(XMLNode node) {
|
|||
case "jabber:iq:roster":
|
||||
switch(node["@type"]) {
|
||||
case "get":
|
||||
// TODO: this assumes that to is unset and the query is
|
||||
// to itself
|
||||
// TODO: this assumes that 'to' is unset and the query is
|
||||
// to itself. we sometimes get here without a valid tag -
|
||||
// what should we do then?
|
||||
hasroster = 1;
|
||||
packet = sprintf("<iq type='result' to='%s' id='%s'>"
|
||||
"<query xmlns='jabber:iq:roster'>",
|
||||
myjid, tag);
|
||||
myjid, stringp(tag)? tag: "");
|
||||
// TODO: listAcq does the same basically
|
||||
foreach (friend : ppl) {
|
||||
mixed *u;
|
||||
|
|
|
@ -1777,7 +1777,7 @@ quit(immediate, variant) {
|
|||
int stayinalive = 0;
|
||||
|
||||
// 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) {
|
||||
P3(("Stay in %O, %O?\n", o, s))
|
||||
if (v("subscriptions")[lower_case(s)] != SUBSCRIBE_PERMANENT)
|
||||
|
|
Loading…
Reference in a new issue