diff --git a/exec/load/salib.js b/exec/load/salib.js index 4db9e7ba9b04b1a39314f5a7b417d31490e38561..32bda57db1f9bd3da4193b186055c04ee67bc79a 100644 --- a/exec/load/salib.js +++ b/exec/load/salib.js @@ -89,13 +89,14 @@ function Message_DoCommand(command) return(ret) } - tmp=rcvd[0].split(/\s+/,3); + tmp=rcvd[0].split(/\s+/); /* was ,3 */ if(tmp.length < 3) { ret.error="Unable to parse line '"+rcvd[0]; return(ret) } if(tmp[1] != '0') { - ret.error="spamd returned error "+tmp[2]+" ("+tmp[1]+")"; + tmp.shift(); + ret.error="spamd returned error: " + tmp.join(" "); return(ret) }