/[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 90 by torben, Mon Jun 16 10:21:02 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"
# Line 23  void SpamPlugin::Execute(IGsmModem& mode Line 24  void SpamPlugin::Execute(IGsmModem& mode
24    
25          if (cmd == "")          if (cmd == "")
26          {          {
27                  modem.SendSms(sms.sender, USAGE);                  modem.SendSms(sms.sender, USAGE, false);
28                  return;                  return;
29          }          }
30                    
# Line 32  void SpamPlugin::Execute(IGsmModem& mode Line 33  void SpamPlugin::Execute(IGsmModem& mode
33    
34          if (parts.size() < 2 )          if (parts.size() < 2 )
35          {          {
36                  modem.SendSms(sms.sender, USAGE);                  modem.SendSms(sms.sender, USAGE, false);
37                  return;                  return;
38          }          }
39    
# Line 55  void SpamPlugin::Execute(IGsmModem& mode Line 56  void SpamPlugin::Execute(IGsmModem& mode
56    
57          for (unsigned i=0; i<count; ++i)          for (unsigned i=0; i<count; ++i)
58          {          {
59                  modem.SendSms(nr,message);                  modem.SendSms(nr,message, false);
60          }          }
61  }  }
62    

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

  ViewVC Help
Powered by ViewVC 1.1.20