/[projects]/smsdaemon/plugins/SpamPlugin.cpp
ViewVC logotype

Diff of /smsdaemon/plugins/SpamPlugin.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 44 by torben, Wed Jun 11 08:25:34 2008 UTC revision 114 by torben, Sun Nov 2 20:14:20 2008 UTC
# Line 1  Line 1 
1  #include "SpamPlugin.h"  #include "SpamPlugin.h"
2  #include "GsmModem.h"  #include "IGsmModem.h"
3    #include "Sms.h"
4    
5  #include "util.h"  #include "util.h"
6  #include "common.h"  #include "common.h"
7  #include <sstream>  #include <sstream>
8    #include <stdlib.h>
9    
10    
11  using namespace std;  using namespace std;
# Line 23  void SpamPlugin::Execute(IGsmModem& mode Line 25  void SpamPlugin::Execute(IGsmModem& mode
25    
26          if (cmd == "")          if (cmd == "")
27          {          {
28                  modem.SendSms(sms.sender, USAGE);                  modem.SendSms(sms.sender, USAGE, false);
29                  return;                  return;
30          }          }
31                    
# Line 32  void SpamPlugin::Execute(IGsmModem& mode Line 34  void SpamPlugin::Execute(IGsmModem& mode
34    
35          if (parts.size() < 2 )          if (parts.size() < 2 )
36          {          {
37                  modem.SendSms(sms.sender, USAGE);                  modem.SendSms(sms.sender, USAGE, false);
38                  return;                  return;
39          }          }
40    
# Line 55  void SpamPlugin::Execute(IGsmModem& mode Line 57  void SpamPlugin::Execute(IGsmModem& mode
57    
58          for (unsigned i=0; i<count; ++i)          for (unsigned i=0; i<count; ++i)
59          {          {
60                  modem.SendSms(nr,message);                  modem.SendSms(nr,message, false);
61          }          }
62  }  }
63    

Legend:
Removed from v.44  
changed lines
  Added in v.114

  ViewVC Help
Powered by ViewVC 1.1.20