From 47a58fd5c23a1ec6c9c1b6929f96eff2c8c95d66 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 8 Jan 2009 23:47:16 +0000 Subject: [PATCH] Change the getter properties to methods. --- exec/load/salib.js | 10 +++++----- exec/spamc.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exec/load/salib.js b/exec/load/salib.js index 32d0bd5693..17692bfd20 100644 --- a/exec/load/salib.js +++ b/exec/load/salib.js @@ -17,11 +17,11 @@ function SPAMC_Message(messagefile, addr, port) this.port='783'; this.messagefile=messagefile; this.DoCommand=Message_DoCommand; - this.check getter=function() { return(this.DoCommand('CHECK')); }; - this.symbols getter=function() { return(this.DoCommand('SYMBOLS')); }; - this.report getter=function() { return(this.DoCommand('REPORT')); }; - this.report_ifspam getter=function() { return(this.DoCommand('REPORT_IFSPAM')); }; - this.process getter=function() { return(this.DoCommand('PROCESS')); }; + this.check =function() { return(this.DoCommand('CHECK')); }; + this.symbols =function() { return(this.DoCommand('SYMBOLS')); }; + this.report =function() { return(this.DoCommand('REPORT')); }; + this.report_ifspam =function() { return(this.DoCommand('REPORT_IFSPAM')); }; + this.process =function() { return(this.DoCommand('PROCESS')); }; } function Message_DoCommand(command) diff --git a/exec/spamc.js b/exec/spamc.js index 98670d244e..a0812cfef2 100644 --- a/exec/spamc.js +++ b/exec/spamc.js @@ -24,7 +24,7 @@ function main() var msg=new SPAMC_Message(message_text_filename, spamd_address, spamd_tcp_port); if(msg === false) return; - var ret=msg.check; + var ret=msg.check(); if(ret === false) return; if(!ret.isSpam) -- GitLab