Skip to content
Snippets Groups Projects
Commit 47a58fd5 authored by deuce's avatar deuce
Browse files

Change the getter properties to methods.

parent 3fc386c4
Branches
Tags
No related merge requests found
......@@ -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)
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment