Skip to content
Snippets Groups Projects
Commit 2f1417f0 authored by Johan Sundström's avatar Johan Sundström
Browse files

Fixed problems with empty arrays.

Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Request.pmod:1.8
parent a41b175a
No related branches found
No related tags found
No related merge requests found
#pike __REAL_VERSION__ #pike __REAL_VERSION__
// $Id: Request.pmod,v 1.7 2000/09/28 03:39:04 hubbe Exp $ // $Id: Request.pmod,v 1.8 2000/11/11 03:07:54 jhs Exp $
//! module Protocols //! module Protocols
//! submodule LysKOM //! submodule LysKOM
//! submodule Request //! submodule Request
...@@ -2056,9 +2056,7 @@ class Create_text ...@@ -2056,9 +2056,7 @@ class Create_text
return ({86, return ({86,
H(text), H(text),
@A((array(string))misc_info), @A((array(string))misc_info),
@A(`+(@Array.map(aux_items, @A(aux_items->encode())});
lambda(AuxItemInput z)
{ return z->encode(); })))});
} }
int reply(array what) int reply(array what)
...@@ -2083,9 +2081,7 @@ class Create_anonymous_text ...@@ -2083,9 +2081,7 @@ class Create_anonymous_text
return ({87, return ({87,
H(text), H(text),
@A((array(string))misc_info), @A((array(string))misc_info),
@A(`+(@Array.map(aux_items, @A(aux_items->encode())});
lambda(AuxItemInput z)
{ return z->encode(); })))});
} }
int reply(array what) int reply(array what)
...@@ -2110,9 +2106,7 @@ class Create_conf ...@@ -2110,9 +2106,7 @@ class Create_conf
return ({88, return ({88,
H(name), H(name),
@B(@rows(type,extendedconftypenames)), @B(@rows(type,extendedconftypenames)),
@A(`+(@Array.map(aux_items, @A(aux_items->encode())});
lambda(AuxItemInput z)
{ return z->encode(); })))});
} }
int(0..65535) reply(array what) int(0..65535) reply(array what)
...@@ -2137,9 +2131,7 @@ class Create_person ...@@ -2137,9 +2131,7 @@ class Create_person
return ({89, return ({89,
H(name), H(name),
H(passwd), H(passwd),
@A(`+(@Array.map(aux_items, @A(aux_items->encode())});
lambda(AuxItemInput z)
{ return z->encode(); })))});
} }
int(0..65535) reply(array what) int(0..65535) reply(array what)
...@@ -2214,9 +2206,7 @@ class Modify_text_info ...@@ -2214,9 +2206,7 @@ class Modify_text_info
return ({92, return ({92,
text, text,
@A((array(string))delete), @A((array(string))delete),
@A(`+(@Array.map(add, @A(add->encode())});
lambda(AuxItemInput z)
{ return z->encode(); })))});
} }
void reply(array what) void reply(array what)
...@@ -2240,9 +2230,7 @@ class Modify_conf_info ...@@ -2240,9 +2230,7 @@ class Modify_conf_info
return ({93, return ({93,
conf, conf,
@A((array(string))delete), @A((array(string))delete),
@A(`+(@Array.map(add, @A(add->encode())});
lambda(AuxItemInput z)
{ return z->encode(); })))});
} }
void reply(array what) void reply(array what)
...@@ -2288,9 +2276,7 @@ class Modify_system_info ...@@ -2288,9 +2276,7 @@ class Modify_system_info
{ {
return ({95, return ({95,
@A((array(string))items_to_delete), @A((array(string))items_to_delete),
@A(`+(@Array.map(items_to_add, @A(items_to_add->encode())});
lambda(AuxItemInput z)
{ return z->encode(); })))});
} }
void reply(array what) void reply(array what)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment